/* style.css - com Animações e Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #000000;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --btn-white: #ffffff;
    --btn-text-dark: #111111;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #000000;
}

/* ── BG Layer: Div fixo que renderiza os orbes corretamente ── */
#bg-orbs {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-color: #000000;
    background-image:
        /* ORBE SUPERIOR DIREITO — núcleo rosa-lilás + halo azul */
        radial-gradient(ellipse 55vw 55vh at 92% -5%,
            rgba(220, 150, 255, 1) 0%,
            rgba(190, 110, 255, 0.85) 20%,
            rgba(140, 80, 230, 0.5) 45%,
            transparent 70%),
        radial-gradient(ellipse 45vw 40vh at 105% 5%,
            rgba(90, 70, 220, 0.9) 0%,
            rgba(60, 50, 190, 0.6) 40%,
            transparent 70%),
        /* ORBE INFERIOR ESQUERDO — núcleo rosa-lilás + halo azul */
        radial-gradient(ellipse 50vw 55vh at -8% 95%,
            rgba(210, 140, 255, 1) 0%,
            rgba(170, 90, 240, 0.85) 25%,
            rgba(120, 60, 210, 0.5) 50%,
            transparent 70%),
        radial-gradient(ellipse 45vw 45vh at -10% 110%,
            rgba(80, 60, 220, 0.9) 0%,
            rgba(50, 40, 190, 0.6) 40%,
            transparent 70%);
}

/* Tudo acima do bg-orbs */
body>*:not(#bg-orbs) {
    position: relative;
    z-index: 1;
}

/* Container Principal - login a esquerda, side-text a direita */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    gap: 4rem;
}

@media (max-width: 1023px) {
    .container {
        gap: 0;
        max-width: 100%;
    }
}

/* ── Card de login/registro - mais compacto ── */
.login-box {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 0.8rem 1.8rem 1.6rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.50);
    width: 100%;
    max-width: 380px;
}

/* ── Animações Restauradas ── */
@keyframes blurFadeIn {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes fadeInBlur {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.animate-blur-fade-in {
    animation: blurFadeIn 1s ease-out forwards;
}

.animate-fade-in-blur {
    animation: fadeInBlur 1.5s ease-out forwards;
}

/* ── Logo ── */
.logo {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.logo img {
    max-width: 130px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── Tipografia ── */
h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ── Formulário ── */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.9rem 1.1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

button {
    background: var(--btn-white);
    color: var(--btn-text-dark);
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
    margin-top: 0.5rem;
}

button:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
}

/* ── Campo senha ── */
.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b8ba0;
    transition: background .15s ease, color .15s ease;
    user-select: none;
}

.toggle-senha:hover {
    background: rgba(124, 77, 255, 0.12);
    color: #c4b0ff;
}

.toggle-senha .eye-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: opacity .25s ease, transform .25s ease;
}

/* Estado padrão: senha oculta = olho aberto visível */
.toggle-senha .eye-open {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.toggle-senha .eye-close {
    opacity: 0;
    transform: scale(0.7) rotate(-15deg);
}

/* Quando senha visível: olho fechado/cortado */
.toggle-senha.is-visible .eye-open {
    opacity: 0;
    transform: scale(0.7) rotate(15deg);
}

.toggle-senha.is-visible .eye-close {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.toggle-senha:active {
    transform: translateY(-50%) scale(0.92);
}

/* ── Divider ou entre com ── */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.2);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 10px;
    font-size: 0.8rem;
}

/* ── Botão Google ── */
a.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

a.btn-google:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ── Links rodapé ── */
.links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.links a:hover {
    color: var(--text-primary);
}

/* ── Erro / Aviso ── */
.erro {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Side text - lado direito do login ── */
.side-text {
    display: none;
}

@media screen and (min-width: 1024px) {
    .side-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        flex: 1;
        max-width: 520px;
    }

    .side-text-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        background: rgba(124, 77, 255, 0.18);
        color: #c4b0ff;
        border: 1px solid rgba(124, 77, 255, 0.35);
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1.2rem;
    }

    .side-text-tag::before {
        content: '';
        width: 7px;
        height: 7px;
        background: #a78bfa;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(167, 139, 250, 0.80);
        animation: kpdPulse 2s ease-in-out infinite;
    }

    @keyframes kpdPulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.4;
        }
    }

    .side-text h1 {
        font-size: 4.5rem;
        font-weight: 800;
        line-height: 1.05;
        color: #ffffff;
        letter-spacing: -2px;
        margin: 0;
        background: linear-gradient(135deg, #ffffff 0%, #c4b0ff 60%, #a78bfa 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .side-text-sub {
        color: #b4b4c8;
        font-size: 1rem;
        line-height: 1.5;
        max-width: 440px;
        margin: 1.2rem 0 0;
    }
}