/* Login Área Premium — layout base (Família Unlocker OEM) */

:root {
    --fu-green: #39ff83;
    --fu-green-dim: #22c55e;
    --fu-text: #ecfff3;
    --fu-muted: #8fb39b;
    --fu-line: rgba(57, 255, 131, 0.18);
    --fu-radius: 18px;
    --fu-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.fu-page-login {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--fu-text);
    background: #030504;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.login-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(57, 255, 131, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 50%, rgba(34, 197, 94, 0.05), transparent 50%),
        linear-gradient(180deg, #050a07 0%, #030504 100%);
}

.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(57, 255, 131, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 131, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.fu-page-login .wrap {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

body.fu-page-login .box {
    position: relative;
    background: linear-gradient(165deg, rgba(14, 24, 18, 0.98) 0%, rgba(7, 12, 9, 0.99) 100%);
    border: 1px solid var(--fu-line);
    border-radius: var(--fu-radius);
    box-shadow: var(--fu-shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    padding: 28px 22px 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.fu-page-login .box.is-focused-within {
    border-color: rgba(57, 255, 131, 0.32);
    box-shadow: var(--fu-shadow), 0 0 0 1px rgba(57, 255, 131, 0.08) inset;
}

body.fu-page-login .box::before,
body.fu-page-login .box::after {
    display: none;
}

.badge-premium {
    display: inline-block;
    width: 100%;
    margin: 0 0 14px;
    padding: 6px 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fu-green);
    border-radius: 999px;
    border: 1px solid rgba(57, 255, 131, 0.25);
    background: rgba(57, 255, 131, 0.08);
}

.hero {
    text-align: center;
    margin-bottom: 20px;
}

.hero-brand {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fu-green);
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.35rem, 4.5vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    color: #f3fff8;
    letter-spacing: -0.02em;
}

.subtxt {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--fu-muted);
    line-height: 1.55;
}

.divider {
    height: 1px;
    margin: 0 0 18px;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 131, 0.15), transparent);
}

.preview-vencimento {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 131, 0.2);
    background: rgba(57, 255, 131, 0.06);
    color: #dfffea;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.45;
}

.erro {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #ff9a9a;
    background: rgba(40, 12, 12, 0.85);
    border: 1px solid rgba(255, 95, 95, 0.4);
}

.caps-warning {
    display: none;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    text-align: center;
    color: #ffd58a;
    background: rgba(255, 200, 80, 0.1);
    border: 1px solid rgba(255, 200, 80, 0.28);
}

.caps-warning.show {
    display: block;
}

.form-group {
    margin-bottom: 14px;
}

.label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b9ebc9;
}

.input-wrap {
    position: relative;
}

.input-wrap .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(57, 255, 131, 0.55);
    pointer-events: none;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px 12px 42px;
    font-size: 0.92rem;
    color: var(--fu-text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(57, 255, 131, 0.16);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="password"],
input.has-toggle {
    padding-right: 48px;
}

input::placeholder {
    color: #6d9480;
}

input:focus {
    border-color: rgba(57, 255, 131, 0.45);
    box-shadow: 0 0 0 3px rgba(57, 255, 131, 0.1);
}

input:focus-visible {
    outline: none;
}

.pwd-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--fu-green);
    cursor: pointer;
}

.pwd-toggle:hover {
    background: rgba(57, 255, 131, 0.08);
}

.pwd-toggle svg {
    width: 20px;
    height: 20px;
}

.pwd-toggle .icon-hide {
    display: none;
}

.pwd-toggle.shown .icon-show {
    display: none;
}

.pwd-toggle.shown .icon-hide {
    display: inline;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

button,
.btn-voltar,
.btn-info,
.btn-suporte {
    border: none;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.btn-main {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #041109;
    background: linear-gradient(180deg, var(--fu-green) 0%, var(--fu-green-dim) 100%);
    box-shadow: 0 8px 22px rgba(57, 255, 131, 0.2);
    position: relative;
}

.btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(57, 255, 131, 0.28);
}

.btn-main:focus-visible,
.btn-voltar:focus-visible,
.btn-info:focus-visible,
.btn-suporte:focus-visible,
.pwd-toggle:focus-visible,
.btn-chat-adm:focus-visible {
    outline: 2px solid #baffcd;
    outline-offset: 2px;
}

.btn-voltar,
.btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.btn-voltar {
    color: #d7ffdf;
    background: transparent;
    border: 1px solid rgba(57, 255, 131, 0.2);
}

.btn-voltar:hover {
    background: rgba(57, 255, 131, 0.06);
    border-color: rgba(57, 255, 131, 0.35);
}

.btn-info {
    color: #b8ffd3;
    background: rgba(57, 255, 131, 0.06);
    border: 1px solid rgba(57, 255, 131, 0.14);
}

.btn-info:hover {
    background: rgba(57, 255, 131, 0.1);
}

.btn-chat-adm {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    text-align: left;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 131, 0.28);
    background: rgba(57, 255, 131, 0.08);
    color: #e8fff0;
}

.btn-chat-adm:hover {
    border-color: rgba(57, 255, 131, 0.45);
    background: rgba(57, 255, 131, 0.12);
    transform: translateY(-1px);
}

.btn-chat-adm-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(57, 255, 131, 0.15);
    color: var(--fu-green);
}

.btn-chat-adm-icon svg {
    display: block;
}

.btn-chat-adm-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-chat-adm-text span {
    display: block;
    font-size: 0.78rem;
    color: #9eb8a8;
    line-height: 1.4;
    font-weight: 500;
}

.lock-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.75rem;
    color: #7a9a88;
    line-height: 1.5;
}

.info-box {
    display: none;
    margin-top: 14px;
    padding: 18px 16px;
    border-radius: var(--fu-radius);
    border: 1px solid var(--fu-line);
    background: linear-gradient(165deg, rgba(12, 20, 15, 0.98), rgba(6, 10, 8, 0.99));
    box-shadow: var(--fu-shadow);
}

.info-box.show {
    display: block;
    animation: fuLoginFade 0.2s ease;
}

@keyframes fuLoginFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-box h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #effff4;
}

.info-box h2 span {
    color: var(--fu-green);
}

.info-list {
    display: grid;
    gap: 8px;
}

.info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(57, 255, 131, 0.08);
}

.info-bullet {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--fu-green);
}

.info-item p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #c8e6d0;
}

.btn-suporte {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    min-height: 48px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.86rem;
    color: #041109;
    background: linear-gradient(180deg, var(--fu-green), var(--fu-green-dim));
    box-shadow: 0 8px 20px rgba(57, 255, 131, 0.18);
}

.wa-logo {
    width: 22px;
    height: 22px;
}

.footer-note {
    margin-top: 12px;
    text-align: center;
    font-size: 0.72rem;
    color: #7a9484;
}

body.fu-page-login #fu-suporte-root .fu-chat-launcher,
body.fu-page-login #fu-suporte-root .fu-nexus-uplink {
    z-index: 99999;
}

@media (max-width: 480px) {
    body.fu-page-login .box {
        padding: 22px 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
