/* Auth candidatos — portal e hotsite */
.portal-auth {
    --auth-brand: #004793;
    --auth-brand-deep: #003884;
    --auth-ink: #12263a;
    --auth-muted: #5b6b7c;
    --auth-surface: #ffffff;
    --auth-line: rgba(18, 38, 58, 0.1);
    position: relative;
    isolation: isolate;
    margin: -1rem -15px 0;
    padding: 2.5rem 1rem 3.5rem;
    overflow: hidden;
    color: var(--auth-ink);
    font-family: Nunito, system-ui, sans-serif;
}


.portal-auth__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.portal-auth__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem 2.5rem;
    align-items: center;
}

.portal-auth__headline {
    font-family: "DM Sans", Nunito, system-ui, sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--auth-ink);
    margin: 0 0 0.85rem;
}

.portal-auth__lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--auth-muted);
    margin: 0 0 1.4rem;
    max-width: 34rem;
}

.portal-auth__benefits {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.portal-auth__benefits li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.55rem;
    color: var(--auth-ink);
    font-size: 0.98rem;
    line-height: 1.45;
}

.portal-auth__benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(0, 71, 147, 0.15);
}

.portal-auth__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.portal-auth__actions .btn-primary {
    padding: 0.7rem 1.35rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 71, 147, 0.22);
}

.portal-auth__panel {
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    padding: 1.5rem 1.4rem 1.35rem;
    box-shadow: 0 18px 40px rgba(18, 38, 58, 0.1);
}

.portal-auth__panel-title {
    font-family: "DM Sans", Nunito, system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--auth-ink);
}

.portal-auth__panel-hint {
    color: var(--auth-muted);
    font-size: 0.92rem;
    margin: 0 0 1.15rem;
}

.portal-auth__panel .form-group {
    margin-bottom: 1rem;
}

.portal-auth__panel .form-control {
    min-height: 44px;
    border-radius: 8px;
    border-color: #c9d4e0;
}

.portal-auth__panel .form-control:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 71, 147, 0.18);
}

.portal-auth__panel label {
    font-weight: 600;
    color: var(--auth-ink);
}

.portal-auth__submit {
    width: 100%;
    min-height: 46px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 0.25rem;
}

.portal-auth__footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.portal-auth__footer-links .btn-link {
    padding: 0;
    font-weight: 600;
}

.portal-auth__alerts {
    margin-bottom: 1rem;
}

/* Hotsite: herda btn-primary / --primary do tema da empresa */
.portal-auth--hotsite {
    --auth-brand: var(--primary, #004793);
    --auth-brand-deep: var(--primary-dark, #003884);
}

.portal-auth--hotsite .portal-auth__actions .btn-primary {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767.98px) {
    .portal-auth {
        margin-left: -15px;
        margin-right: -15px;
        padding: 1.5rem 1rem 2.5rem;
    }

    .portal-auth__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cadastro / benefício primeiro no mobile */
    .portal-auth__pitch {
        order: 1;
    }

    .portal-auth__form-col {
        order: 2;
    }

    .portal-auth__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-auth__actions .btn-primary {
        width: 100%;
        text-align: center;
    }

    .portal-auth__panel {
        padding: 1.25rem 1rem;
    }
}
