/*
 * ZEUS Studio — tela de login (Fase 3): a menor prova ponta a ponta do
 * design system, porque o backend (Auth, papéis, bloqueio) já existe desde
 * a Fase 1. Ver `entrar.php`.
 */

.z-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Gradiente estático — o que prefers-reduced-motion vê no lugar das
       partículas animadas. Sempre presente, nunca só cor sólida. */
    background: radial-gradient(circle at 30% 20%, var(--z-login-glow-1), transparent 55%),
                radial-gradient(circle at 80% 80%, var(--z-login-glow-2), transparent 50%),
                var(--z-bg);
}

.z-login__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.z-login__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--z-space-10);
    padding: var(--z-space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.z-login__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--z-space-3);
    text-align: center;
    min-width: 220px;
}
.z-login__bolt {
    font-size: 2.5rem;
    color: var(--z-orange);
    filter: drop-shadow(0 0 18px var(--z-orange-a50));
}
.z-login__wordmark {
    font-size: var(--z-text-2xl);
    font-weight: 700;
    letter-spacing: .12em;
}
.z-login__tagline {
    color: var(--z-text-secondary);
    font-size: var(--z-text-sm);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.z-login__card {
    width: min(360px, 90vw);
    background: hsl(30 4% 10% / .85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    box-shadow: var(--z-shadow-lg);
    padding: var(--z-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--z-space-4);
}

.z-login__field-group {
    position: relative;
}
.z-login__toggle-password {
    position: absolute;
    right: var(--z-space-3);
    top: var(--z-space-3);
    background: transparent;
    border: none;
    color: var(--z-text-secondary);
    cursor: pointer;
    padding: var(--z-space-1);
}
.z-login__toggle-password:hover { color: var(--z-text); }

.z-login__submit {
    width: 100%;
    letter-spacing: .06em;
}

.z-login__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--z-space-3);
    text-align: center;
}
.z-login__success-icon {
    font-size: 2rem;
    color: var(--z-success);
}

.z-login__unconfigured {
    text-align: center;
    color: var(--z-text-secondary);
}
