
:root {
    --brand-blue: #245f9e;
    --brand-pink: #e46e8f;
    --brand-gray: #8d92a0;
    --ink: #1d2b3d;
    --muted: #66758a;
    --line: #d9e1ea;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #fbfcfe;
    --shadow: 0 20px 45px rgba(28, 43, 64, 0.10);
    --radius: 22px;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(228, 110, 143, 0.10), transparent 22%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}
a { color: var(--brand-blue); }
img { max-width: 100%; height: auto; }

.site-header {
    background: linear-gradient(135deg, var(--brand-blue), #1d4e83 68%, #1c4675 100%);
    color: #fff;
    padding: 36px 16px 42px;
    border-bottom: 4px solid rgba(228, 110, 143, 0.9);
    box-shadow: 0 12px 36px rgba(21, 53, 88, 0.18);
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

/* ESQUERDA */
.brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.brand-logo,
.brand-logo-repro {
    width: 160px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 14px 28px rgba(10, 28, 49, 0.22);
}

.brand-logo-link {
    display: flex;
    text-decoration: none;
}

/* TEXTO CENTRALIZADO NA ALTURA */
.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-copy h1 {
    margin: 0 0 4px;
    font-size: 50px;
    line-height: 1.1;
    font-weight: 800;
}

.brand-copy p {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 1.10rem;
    line-height: 1.4;
}

.admin-login-logo {
    width: 170px;
    height: 70px;
    object-fit: contain;

    background: #fff;
    border-radius: 18px;
    padding: 10px 14px;

    box-shadow: 0 16px 34px rgba(7, 24, 42, 0.18);
    
}

/* DIREITA (BOTÕES) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

/* BOTÕES */
.nav-links a {
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    padding: 8px 14px; 
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem; 
    white-space: nowrap;
    transition: all .15s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.30);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 18px;
    }

    .brand-logo {
        width: 150px;
    }
}

@media (max-width: 600px) {
    .brand-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }
}

.floating-back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    text-decoration: none;
    background: #2563eb;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    z-index: 999;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.floating-back-link:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.16);
}

.section { padding: 34px 0 42px; }

.hero,
.card {
    background: rgba(255,255,255,0.96);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(36, 95, 158, 0.08);
}

.hero {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    position: absolute;
    right: -52px;
    top: -52px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(228, 110, 143, 0.16) 0%, rgba(228, 110, 143, 0.03) 58%, transparent 72%);
    pointer-events: none;
}

.hero h2,
.card h2,
.card h3,
.card h1 {
    margin-top: 0;
    color: #143a61;
}

.hero p,
.card p,
.card li {
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card { padding: 28px; }

label {
    display: block;
    margin: 16px 0 8px;
    font-weight: bold;
    font-size: 14px;
    color: #1f3550;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid #cfd8e3;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input,
select,
textarea {
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(36, 95, 158, 0.70);
    box-shadow: 0 0 0 4px rgba(36, 95, 158, 0.10);
}

textarea {
    min-height: 170px;
    resize: vertical;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-blue), #1d4e83);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 12px 24px rgba(36, 95, 158, 0.22);
}

button:hover,
.btn:hover {
    background: linear-gradient(135deg, #1f5389, #19446f);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--brand-gray), #747b8a);
    box-shadow: 0 12px 24px rgba(118, 126, 141, 0.20);
}

.notice,
.success,
.error {
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(25, 42, 70, 0.06);
}

.notice {
    background: #f2f7ff;
    border: 1px solid #cfe0f4;
}

.success {
    background: #ecfbf4;
    border: 1px solid #b7ead0;
}

.error {
    background: #fff4f6;
    border: 1px solid #f5c7d3;
}

.protocol-box {
    background: linear-gradient(135deg, #173f68, #245f9e);
    color: #fff;
    padding: 18px;
    border-radius: 18px;
    font-size: 21px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: 0 18px 32px rgba(36, 95, 158, 0.25);
}

.badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge-gray { background: #edf1f6; color: #516072; }
.badge-blue { background: #dbe9f7; color: #1f5d99; }
.badge-green { background: #e3f6ea; color: #216648; }
.badge-dark { background: #e6e7ec; color: #53596a; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #e7edf3;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f7f9fc;
    color: #24496f;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

tr:hover td { background: #fbfdff; }

.footer {
    margin-top: auto;
    padding: 24px 16px 46px;
    text-align: center;
    color: var(--muted);
}

.footer-logo {
    width: 160px;
    margin: 0 auto 12px;
    display: block;
    opacity: 0.95;
}

.small { font-size: 13px; color: var(--muted); }
.login-card { max-width: 560px; margin: 70px auto 40px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.login-shell {
    min-height: 100vh;
    position: relative;
    padding-top: 10px;
}

.floating-back {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 5;
}

.form-spacer-top { margin-top: 18px; }
.soft-panel {
    background: linear-gradient(180deg, rgba(36, 95, 158, 0.06), rgba(228, 110, 143, 0.05));
    border: 1px solid rgba(36, 95, 158, 0.10);
    border-radius: 18px;
    padding: 18px;
}

.cf-turnstile {
    margin: 18px 0 4px;
}

@media (max-width: 800px) {
    .brand-logo { width: 140px; }
    .brand-copy h1, .site-header h1 { font-size: 26px; }
    .card, .hero { padding: 22px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 22px, 1160px); }
    .site-header { padding: 20px 12px; }
    .brand-block { gap: 12px; align-items: flex-start; }
    .brand-logo { width: 116px; padding: 8px 10px; }
    .brand-copy h1, .site-header h1 { font-size: 22px; }
    .nav-links a, .floating-back-link { padding: 10px 14px; }
    .login-card { margin-top: 92px; }
    .floating-back { top: 16px; left: 16px; right: 16px; }
    .floating-back-link { display: inline-flex; }
}

/* =========================================================
   LOGIN - ÁREA ADMINISTRATIVA
   ========================================================= */

.admin-login-page {
    min-height: 100vh;
    background: #f3f6fa;
}

.admin-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.admin-login-left {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(228, 110, 143, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(228, 110, 143, 0.10), transparent 22%),
        linear-gradient(135deg, #123a63 0%, #0e2e50 52%, #123f66 100%);
    color: #fff;
}

.admin-login-left::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 110, 143, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.admin-login-left::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 72%);
    pointer-events: none;
}

.admin-login-left-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 52px;
}

.admin-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #fff;
    width: fit-content;
}

.admin-login-brand-logo {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
    background: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 16px 34px rgba(7, 24, 42, 0.18);
}

.admin-login-brand-text {
    display: none;
}

.admin-login-hero {
    max-width: 520px;
    margin: 40px 0;
}

.admin-login-hero h1 {
    margin: 0 0 18px;
    font-size: 58px;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #f7fbff;
}

.admin-login-hero h1 em {
    font-style: normal;
    color: #ff9cb7;
}

.admin-login-hero p {
    margin: 0;
    font-size: 22px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 420px;
}

.admin-login-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.admin-login-stat {
    border-left: 2px solid rgba(255, 156, 183, 0.9);
    padding-left: 16px;
}

.admin-login-stat strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    color: #fff;
}

.admin-login-stat span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.admin-login-right {
    background:
        radial-gradient(circle at top left, rgba(228, 110, 143, 0.05), transparent 25%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.admin-login-card {
    width: 100%;
    max-width: 470px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(36, 95, 158, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(16, 43, 71, 0.10);
    padding: 40px 36px 34px;
}

.admin-login-card-header {
    margin-bottom: 24px;
}

.admin-login-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(228, 110, 143, 0.10);
    color: #b14d70;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.admin-login-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e46e8f;
}

.admin-login-card-header h2 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.05;
    color: #143a61;
}

.admin-login-card-header p {
    margin: 0;
    color: #6b7b90;
    font-size: 16px;
    line-height: 1.55;
}

.admin-login-form {
    margin-top: 8px;
}

.admin-login-field {
    margin-bottom: 18px;
}

.admin-login-field label {
    display: block;
    margin: 0 0 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e738b;
}

.admin-login-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-login-field input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid #d2dbe6;
    background: #fbfcfe;
    font-size: 15px;
    color: #1d2b3d;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-login-field input::placeholder {
    color: #a7b4c2;
}

.admin-login-field input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(228, 110, 143, 0.75);
    box-shadow: 0 0 0 4px rgba(228, 110, 143, 0.12);
}

.admin-login-submit {
    width: 100%;
    margin-top: 10px;
    padding: 16px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #143a61 0%, #245f9e 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(36, 95, 158, 0.22);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.admin-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(36, 95, 158, 0.28);
    filter: brightness(1.02);
}

.admin-login-submit span {
    margin-left: 8px;
}

.admin-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 18px;
    color: #b0bcc9;
    font-size: 12px;
    text-transform: lowercase;
}

.admin-login-divider::before,
.admin-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8e1ea;
}

.admin-login-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d2dbe6;
    background: #fff;
    color: #5f748a;
    text-decoration: none;
    font-weight: 600;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.admin-login-back:hover {
    border-color: #b9c7d5;
    color: #143a61;
    background: #fbfdff;
}

.admin-login-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #9aa9b8;
}

@media (max-width: 1100px) {
    .admin-login-layout {
        grid-template-columns: 1fr;
    }

    .admin-login-left {
        display: none;
    }

    .admin-login-right {
        min-height: 100vh;
        padding: 28px 18px;
    }

    .admin-login-card {
        max-width: 520px;
        padding: 32px 24px 28px;
    }

    .admin-login-card-header h2 {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .admin-login-right {
        padding: 18px 14px;
    }

    .admin-login-card {
        border-radius: 22px;
        padding: 26px 18px 22px;
    }

    .admin-login-card-header h2 {
        font-size: 30px;
    }

    .admin-login-card-header p {
        font-size: 15px;
    }

    .admin-login-submit,
    .admin-login-back {
        min-height: 48px;
    }
}

.filters-description {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #5e738b;
}

/* ===== AJUSTE TELA ADMIN - DETALHES ===== */

input[name="observacao"] {
    min-height: 44px;
    max-width: 100%;
}

textarea[name="resposta_rh"] {
    min-height: 240px;
}

.btn-salvar {
    margin-top: 20px;
}

/* ===== PAINEL ADMIN ===== */

.table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    background: rgba(36, 95, 158, 0.88);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 18px rgba(36, 95, 158, 0.18);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.table-action-btn:hover {
    background: rgba(29, 78, 131, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(36, 95, 158, 0.24);
}

/* melhora o bloco de filtros */
.card h2 {
    margin-bottom: 10px;
}

.card .small {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #5e738b;
}

/* BADGES DE STATUS */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* Recebido (cinza) */
.badge-recebido {
    background-color: #e5e7eb;
    color: #374151;
}

/* Concluído (verde) */
.badge-concluido {
    background-color: #d1fae5;
    color: #065f46;
}

.welcome-admin {
    color: #fff;
    font-size: 14px;
    margin-right: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
}

.welcome-admin strong {
    font-weight: 700;
}

.welcome-admin {
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(6px);
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.welcome-admin strong {
    margin-left: 4px;
}

.hero-ajustada {
    padding: 28px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    border: 1px solid rgba(31, 95, 168, 0.15);
    box-shadow: 0 12px 30px rgba(31, 95, 168, 0.08);
}

.hero-linha {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-icone {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf2fb, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.hero-texto-destaque {
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
    color: #1a2f4a;
    font-weight: 600;
}

.hero-texto-destaque strong {
    font-weight: 600;
    color: #123c6b;
}

.success-screen {
    max-width: 760px;
    margin: 20px auto 0;
    background: #ffffff;
    border-radius: 28px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.10);
}

.success-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
}

.success-screen h2 {
    margin: 0 0 14px;
    font-size: 34px;
    color: #123c6b;
}

.success-subtitle {
    margin: 0 0 26px;
    font-size: 18px;
    color: #44546a;
}

.protocol-box-big {
    margin: 0 auto 24px;
    padding: 24px;
    border-radius: 20px;
    background: #1f5fa8;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    word-break: break-word;
    box-shadow: 0 16px 35px rgba(31, 95, 168, 0.20);
}

.protocol-warning {
    margin: 0 auto 30px;
    padding: 18px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    max-width: 640px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: #1f5fa8;
}

.btn-link:hover {
    opacity: 0.92;
}

.brand-logo-link {
    display: inline-flex;
    text-decoration: none;
}
