/* ============================================
   LOGIN — Design v2
   ============================================ */
:root {
    --dourado: #ffd700;
    --dourado-soft: #e6c200;
    --bg-0: #0a0a0a;
    --border: rgba(255,255,255,0.08);
    --texto: #f5f5f5;
    --texto-fraco: #9a9a9a;
    --vermelho: #ff4c6a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-0);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--texto);
    overflow: hidden;
    padding: 20px;
}

/* Fundo com gradiente suave */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.1), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.06), transparent 50%),
        var(--bg-0);
    z-index: -2;
}

/* Imagem de fundo sutil (banner desfocado) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../img/banner.png') center/cover no-repeat;
    opacity: 0.08;
    filter: blur(1px);
    z-index: -1;
}

.caixa-login {
    background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(10,10,10,0.9));
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 380px;
    text-align: center;
    border: 1px solid var(--border);
    animation: subirFade 0.5s ease;
}

@keyframes subirFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.caixa-login img {
    max-height: 60px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.25));
}
.caixa-login h2 {
    color: #fff;
    margin: 20px 0 6px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}
.caixa-login .sub-login {
    color: var(--texto-fraco);
    font-size: 0.88rem;
    margin: 0 0 24px;
}

.caixa-login input {
    width: 100%;
    padding: 13px 14px;
    margin: 6px 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--texto);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.2s;
}
.caixa-login input::placeholder { color: var(--texto-fraco); }
.caixa-login input:focus {
    outline: none;
    border-color: var(--dourado);
    background: rgba(255, 215, 0, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.caixa-login button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--dourado), var(--dourado-soft));
    border: none;
    color: #000;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 18px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.2s;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
}
.caixa-login button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}
.caixa-login button:active { transform: translateY(0); }

.trocar-tela {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--texto-fraco);
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}
.trocar-tela:hover { color: var(--dourado); }

.erro {
    color: var(--vermelho);
    font-size: 0.85rem;
    margin-top: 14px;
    display: none;
    padding: 10px 12px;
    background: rgba(255, 76, 106, 0.08);
    border: 1px solid rgba(255, 76, 106, 0.3);
    border-radius: 8px;
}
