/**
 * Portal RH — OS Pará 2000
 * Login isolado em assets/css/login.css
 * Refino v3: glassmorphism mais transparente para valorizar o wallpaper.
 * Página de acesso, wallpaper, suporte e mobile sem depender do CSS antigo do style.css.
 * @author Albert Madureira
 */

body.login-page {
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background-color: var(--bg, #f2f4f8);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text, #1e2a4a);
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

body.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 10%, rgba(255,255,255,.30), transparent 30%),
        radial-gradient(circle at 82% 86%, rgba(30,42,74,.18), transparent 38%),
        linear-gradient(135deg, rgba(242,244,248,.36) 0%, rgba(242,244,248,.16) 100%);
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.login-page.has-wallpaper::before {
    background:
        radial-gradient(circle at 12% 8%, rgba(255,255,255,.10), transparent 31%),
        radial-gradient(circle at 88% 88%, rgba(30,42,74,.10), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(30,42,74,.025) 100%);
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.auth-particle {
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    animation: authFloatParticle linear infinite;
}

@keyframes authFloatParticle {
    0% { transform: translateY(0); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translateY(-110vh); opacity: 0; }
}

.auth-shell {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    animation: scaleIn .34s cubic-bezier(.34,1.56,.64,1) both;
}

.card.login-card {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 880px;
    min-height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.56);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.08)),
        rgba(255,255,255,.08);
    box-shadow:
        0 28px 80px rgba(14,22,42,.30),
        inset 0 1px 0 rgba(255,255,255,.42);
    backdrop-filter: blur(16px) saturate(142%);
    -webkit-backdrop-filter: blur(16px) saturate(142%);
    animation: none;
}

.card.login-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: 0;
    pointer-events: none;
    border-radius: 29px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,.35), transparent 32%),
        radial-gradient(circle at 96% 8%, rgba(255,255,255,.24), transparent 30%);
}

.card.login-card:hover {
    box-shadow:
        0 32px 92px rgba(14,22,42,.34),
        inset 0 1px 0 rgba(255,255,255,.46);
}

.card-left {
    position: relative;
    z-index: 1;
    width: 42%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 34px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(30,42,74,.58) 0%, rgba(42,58,94,.42) 100%),
        rgba(30,42,74,.28);
    color: #fff;
    text-align: center;
    backdrop-filter: blur(12px) saturate(136%);
    -webkit-backdrop-filter: blur(12px) saturate(136%);
}

.card-left::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -125px;
    top: -112px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    filter: blur(.2px);
}

.card-left::after {
    content: '';
    position: absolute;
    right: -32px;
    top: 0;
    bottom: 0;
    width: 70px;
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    clip-path: ellipse(70px 55% at 0% 50%);
    z-index: 1;
}

.card-left > * {
    position: relative;
    z-index: 2;
}

.card-right {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 42px;
    min-width: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.18)),
        rgba(255,255,255,.16);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.auth-logo-img {
    display: block;
    max-width: 142px;
    max-height: 78px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.logo-title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.logo-sub {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255,255,255,.68);
}

.logo-div {
    width: 42px;
    height: 2px;
    margin: 17px auto;
    border-radius: 999px;
    background: var(--wave, #8a9ab0);
    opacity: .75;
}

.tagline {
    max-width: 285px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.68;
    color: rgba(255,255,255,.82);
    text-align: center;
}

.form-title {
    margin: 0 0 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--text, #1e2a4a);
}

.form-subtitle {
    margin: 0 0 24px;
    color: var(--text-muted, #6a7a8e);
    font-size: 13px;
}

.badge-auto {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-bottom: 20px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 999px;
    background: rgba(232,240,254,.42);
    color: var(--navy, #1e2a4a);
    font-size: 11px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.44);
    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    animation: pulse-ring 2s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--navy, #1e2a4a);
    transition: background .2s ease;
}

.badge-dot.colaborador { background: #2980b9; }
.badge-dot.admin { background: #27ae60; }

.auth-field-hint {
    margin-top: 6px;
    min-height: 16px;
    color: var(--text-muted, #6a7a8e);
    font-size: 11px;
    line-height: 1.4;
}


body.login-page .field-label {
    color: rgba(30,42,74,.74);
    letter-spacing: .10em;
}

body.login-page .field-input {
    border: 1px solid rgba(255,255,255,.54);
    background: rgba(255,255,255,.34);
    color: var(--text, #1e2a4a);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.50),
        0 10px 24px rgba(30,42,74,.08);
    backdrop-filter: blur(10px) saturate(145%);
    -webkit-backdrop-filter: blur(10px) saturate(145%);
}

body.login-page .field-input:hover {
    border-color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.46);
}

body.login-page .field-input:focus {
    border-color: rgba(30,42,74,.42);
    background: rgba(255,255,255,.56);
    box-shadow:
        0 0 0 4px rgba(30,42,74,.10),
        inset 0 1px 0 rgba(255,255,255,.58),
        0 14px 28px rgba(30,42,74,.10);
}

body.login-page .field-input:-webkit-autofill,
body.login-page .field-input:-webkit-autofill:hover,
body.login-page .field-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text, #1e2a4a);
    box-shadow:
        0 0 0 1000px rgba(255,255,255,.44) inset,
        0 0 0 4px rgba(30,42,74,.08),
        0 14px 28px rgba(30,42,74,.10);
    transition: background-color 9999s ease-in-out 0s;
}

body.login-page .olho {
    color: #666666;
}

body.login-page .olho:hover {
    color: #333333;
}

.alert-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding: 11px 14px;
    border: 1px solid rgba(245,198,194,.72);
    border-radius: 14px;
    background: rgba(253,236,234,.70);
    color: var(--red, #9e2a2a);
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.38);
    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    animation: slideRight .3s ease;
}

.alert-error::before {
    content: '⚠️';
    flex-shrink: 0;
}

.btn-entrar {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: var(--navy, #1e2a4a);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-entrar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity .18s ease;
}

.btn-entrar:hover {
    background: var(--navy-mid, #2a3a5e);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(30,42,74,.26);
}

.btn-entrar:hover::after {
    opacity: 1;
    animation: shimmer .7s ease;
}

.btn-entrar:active {
    transform: scale(.99);
    box-shadow: none;
}

.btn-entrar.loading {
    pointer-events: none;
    opacity: .86;
}

.btn-entrar.loading::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin .7s linear infinite;
}

.auth-help {
    margin-top: 14px;
    text-align: center;
}

.auth-link {
    color: var(--text-muted, #6a7a8e);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease;
}

.auth-link:hover {
    color: var(--navy, #1e2a4a);
}

.card-footer {
    position: absolute;
    right: 20px;
    bottom: 14px;
    color: #a0acbd;
    font-size: 10px;
}

/* Suporte no login: complementa portal_contatos.css sem depender do CSS global. */
.pc-login-support {
    width: min(100%, 292px);
    margin-top: 20px;
}

.pc-login-support-btn svg,
.pc-wa-svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block !important;
    flex: 0 0 18px !important;
}

.pc-contact-modal {
    z-index: 17000 !important;
}

.pc-contact-modal-dialog {
    max-height: calc(100dvh - 36px);
    overflow: auto;
}

@media (max-width: 760px) {
    body.login-page {
        align-items: flex-start;
        justify-content: center;
        padding: 12px 10px 22px;
        background-attachment: scroll;
        background-position: center top;
    }

    body.login-page::before {
        background:
            radial-gradient(circle at 15% 4%, rgba(255,255,255,.26), transparent 35%),
            linear-gradient(135deg, rgba(242,244,248,.34) 0%, rgba(242,244,248,.18) 100%);
    }

    body.login-page.has-wallpaper::before {
        background:
            radial-gradient(circle at 12% 4%, rgba(255,255,255,.10), transparent 34%),
            linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(30,42,74,.025) 100%);
    }

    .auth-shell {
        max-width: 560px;
    }

    .card.login-card {
        flex-direction: column;
        min-height: auto;
        margin: 0 auto;
        border-radius: 24px;
        backdrop-filter: blur(18px) saturate(145%);
        -webkit-backdrop-filter: blur(18px) saturate(145%);
    }

    .card-left {
        width: 100%;
        padding: 26px 22px 28px;
        background:
            linear-gradient(145deg, rgba(30,42,74,.54) 0%, rgba(42,58,94,.38) 100%),
            rgba(30,42,74,.24);
    }

    .card-left::after {
        display: none;
    }

    .auth-logo-img {
        max-width: 132px;
        max-height: 72px;
        margin-bottom: 10px;
    }

    .logo-title {
        font-size: 25px;
    }

    .logo-div {
        margin: 13px auto;
    }

    .tagline {
        max-width: 310px;
        font-size: 13px;
        line-height: 1.55;
    }

    .pc-login-support {
        width: 100%;
        margin-top: 20px;
    }

    .card-right {
        padding: 28px 24px 36px;
        background:
            linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.16)),
            rgba(255,255,255,.14);
    }

    .form-title {
        font-size: 21px;
    }

    .card-footer {
        position: static;
        margin-top: 16px;
        text-align: center;
    }

    .pc-contact-modal {
        align-items: center !important;
        padding: 10px !important;
    }

    .pc-contact-modal-dialog {
        width: min(100%, 520px) !important;
        border-radius: 22px !important;
    }
}

@media (max-width: 390px) {
    body.login-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .card-left {
        padding: 22px 18px 25px;
    }

    .card-right {
        padding: 24px 20px 32px;
    }

    .pc-login-support {
        margin-top: 18px;
    }
}


body.login-page .pc-login-support .pc-login-support-card,
body.login-page .pc-login-support-card {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
    backdrop-filter: blur(10px) saturate(135%);
    -webkit-backdrop-filter: blur(10px) saturate(135%);
}

body.login-page .pc-login-support-btn,
body.login-page .pc-login-support a {
    backdrop-filter: blur(8px) saturate(135%);
    -webkit-backdrop-filter: blur(8px) saturate(135%);
}

/* Refino v4 — glassmorphism com texto mais legível sem esconder o wallpaper. */
.card-left,
.card-right {
    text-rendering: geometricPrecision;
}

.card-left {
    text-shadow: 0 2px 10px rgba(4,10,24,.36);
}

.card-left .logo-sub,
.card-left .tagline {
    color: rgba(255,255,255,.94);
}

.card-left .tagline {
    font-weight: 650;
    text-shadow:
        0 1px 2px rgba(4,10,24,.46),
        0 8px 20px rgba(4,10,24,.26);
}

body.login-page .pc-login-support .pc-login-support-card,
body.login-page .pc-login-support-card {
    background:
        linear-gradient(135deg, rgba(30,42,74,.34), rgba(42,58,94,.20)),
        rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.32);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 14px 36px rgba(4,10,24,.20);
}

body.login-page .pc-login-support-card strong,
body.login-page .pc-login-support-card b,
body.login-page .pc-login-support-card h3,
body.login-page .pc-login-support-card h4 {
    color: rgba(255,255,255,.98) !important;
    text-shadow: 0 1px 2px rgba(4,10,24,.52);
}

body.login-page .pc-login-support-card p,
body.login-page .pc-login-support-card small,
body.login-page .pc-login-support-card span:not(.pc-login-support-btn span) {
    color: rgba(255,255,255,.88) !important;
    text-shadow: 0 1px 2px rgba(4,10,24,.42);
}

.card-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10)),
        radial-gradient(circle at 60% 35%, rgba(255,255,255,.20), transparent 48%);
}

.card-right > * {
    position: relative;
    z-index: 1;
}

.form-title {
    color: #162344;
    text-shadow: 0 1px 0 rgba(255,255,255,.72), 0 10px 24px rgba(255,255,255,.34);
}

.form-subtitle,
.auth-field-hint,
.auth-link,
.card-footer {
    color: #40536f;
    text-shadow: 0 1px 0 rgba(255,255,255,.74);
}

body.login-page .field-label {
    color: #162344;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(255,255,255,.78);
}

.badge-auto {
    background: rgba(255,255,255,.58);
    color: #162344;
    border-color: rgba(255,255,255,.68);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.64),
        0 10px 22px rgba(30,42,74,.08);
}

body.login-page .field-input {
    background: rgba(255,255,255,.58);
    border-color: rgba(255,255,255,.74);
    color: #162344;
    font-weight: 700;
}

body.login-page .field-input::placeholder {
    color: rgba(64,83,111,.72);
    font-weight: 600;
}

body.login-page .field-input:hover {
    background: rgba(255,255,255,.66);
}

body.login-page .field-input:focus {
    background: rgba(255,255,255,.74);
    border-color: rgba(30,42,74,.52);
}

body.login-page .field-input:-webkit-autofill,
body.login-page .field-input:-webkit-autofill:hover,
body.login-page .field-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #162344;
    box-shadow:
        0 0 0 1000px rgba(255,255,255,.68) inset,
        0 0 0 4px rgba(30,42,74,.10),
        0 14px 28px rgba(30,42,74,.10);
}

.btn-entrar {
    box-shadow: 0 12px 26px rgba(12,20,42,.20);
}

@media (max-width: 760px) {
    .card-left {
        background:
            linear-gradient(145deg, rgba(30,42,74,.62) 0%, rgba(42,58,94,.45) 100%),
            rgba(30,42,74,.28);
    }

    .card-right {
        background:
            linear-gradient(135deg, rgba(255,255,255,.48), rgba(255,255,255,.22)),
            rgba(255,255,255,.20);
    }

    .card-right::before {
        background:
            linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.14)),
            radial-gradient(circle at 50% 18%, rgba(255,255,255,.22), transparent 52%);
    }

    .form-subtitle,
    .auth-field-hint,
    .auth-link,
    .card-footer {
        color: #394b66;
    }

    body.login-page .field-input {
        background: rgba(255,255,255,.70);
    }

    body.login-page .field-input:focus {
        background: rgba(255,255,255,.80);
    }
}

/* Refino v5 — textos da área clara em preto e crédito sem sobrepor o link de senha. */
.card-right {
    color: #090f1f;
}

.form-title,
.form-subtitle,
.auth-field-hint,
.auth-link,
.card-footer,
body.login-page .field-label {
    color: #090f1f;
    text-shadow:
        0 1px 0 rgba(255,255,255,.72),
        0 8px 18px rgba(255,255,255,.22);
}

.form-title {
    color: #071126;
}

.form-subtitle,
.auth-field-hint {
    color: #111827;
    font-weight: 650;
}

.auth-link {
    color: #111827;
    font-weight: 800;
}

.auth-link:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.login-page .field-label {
    color: #071126;
    font-weight: 950;
}

.badge-auto {
    color: #071126;
    font-weight: 900;
}

body.login-page .field-input,
body.login-page .field-input::placeholder {
    color: #071126;
}

body.login-page .field-input::placeholder {
    opacity: .68;
}

.auth-help {
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}

.card-footer {
    position: static;
    width: 100%;
    margin-top: 26px;
    padding-top: 10px;
    text-align: right;
    color: #000000;
    font-size: 12px;
    line-height: 1.3;
    opacity: .90;
}

@media (max-width: 760px) {
    .form-title,
    .form-subtitle,
    .auth-field-hint,
    .auth-link,
    .card-footer,
    body.login-page .field-label {
        color: #071126;
    }

    .auth-help {
        margin-top: 18px;
        margin-bottom: 0;
    }

    .card-footer {
        margin-top: 24px;
        padding-top: 12px;
        text-align: center;
        opacity: .78;
    }
}
