/* LOUD AUTH STYLE — Firebase Edition */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=Bebas+Neue&display=swap');

/* ── MODAL OVERLAY ─────────────────────────────────────────── */
.loud-login-modal {
    position: fixed !important;
    inset: 0 !important;
    background: #0a0a0b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    font-family: 'DM Sans', sans-serif;
    padding: 16px;
}

/* ── CARD ──────────────────────────────────────────────────── */
.loud-login-container {
    background: #111114;
    border: 1.5px solid #22c55e;
    border-radius: 20px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(34,197,94,0.12), 0 20px 60px rgba(0,0,0,0.6);
    animation: auth-card-in .35s cubic-bezier(.22,.68,0,1.2);
}
@keyframes auth-card-in {
    from { opacity: 0; transform: scale(.94) translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── LOGO ──────────────────────────────────────────────────── */
.loud-login-logo {
    width: 52px; height: 52px;
    background: #22c55e; color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(34,197,94,0.35);
}

/* ── TELAS (animação de entrada) ───────────────────────────── */
.auth-screen { animation: screen-in .25s ease; }
.auth-screen.hidden { display: none !important; }
@keyframes screen-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ── CABEÇALHO ─────────────────────────────────────────────── */
.loud-login-header h2 {
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    margin: 0 0 4px;
}
.loud-login-header p {
    color: #71717a;
    font-size: 0.78rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── INPUTS ────────────────────────────────────────────────── */
.loud-input-group {
    text-align: left;
    margin-bottom: 14px;
}
.loud-input-group label {
    display: block;
    color: #22c55e;
    font-size: 0.62rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.label-hint {
    color: #52525b;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.loud-input-group input {
    width: 100%;
    background: #1a1a1e;
    border: 1px solid #2a2a30;
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
}
.loud-input-group input:focus {
    border-color: #22c55e;
    background: #1f1f23;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.loud-input-group input::placeholder { color: #3f3f46; }

/* ── CAMPO COM BOTÃO OLHO ──────────────────────────────────── */
.input-password-wrap {
    position: relative;
}
.input-password-wrap input { padding-right: 42px; }
.toggle-pass {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 1rem; padding: 4px;
    color: #52525b; transition: color .2s;
    line-height: 1;
}
.toggle-pass:hover { color: #a1a1aa; }

/* ── ERROS / SUCESSO ───────────────────────────────────────── */
.auth-error {
    color: #ef4444;
    font-size: 0.78rem;
    min-height: 18px;
    margin-bottom: 8px;
    text-align: left;
    font-weight: 600;
}
.auth-success {
    color: #22c55e;
    font-size: 0.82rem;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    text-align: left;
}
.auth-success.hidden { display: none; }

/* ── BOTÃO PRINCIPAL ───────────────────────────────────────── */
.auth-btn {
    width: 100%;
    background: #22c55e; color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-family: 'DM Sans', sans-serif;
}
.auth-btn:hover:not(:disabled) {
    background: #1eb054;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.3);
}
.auth-btn:active:not(:disabled) { transform: translateY(0); }
.auth-btn:disabled {
    background: #27272a; color: #52525b;
    cursor: not-allowed; transform: none;
}

/* ── BOTÃO SECUNDÁRIO (CRIAR CONTA) ─────────────────────────── */
.auth-btn-secondary {
    width: 100%;
    background: transparent;
    color: #22c55e;
    border: 2px solid #22c55e;
    padding: 13px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s, color .2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-family: 'DM Sans', sans-serif;
}
.auth-btn-secondary:hover {
    background: rgba(34,197,94,0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.2);
}

/* ── LINKS DE NAVEGAÇÃO ────────────────────────────────────── */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.auth-link {
    background: none; border: none;
    color: #52525b;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .5px;
    padding: 4px 0;
    font-family: 'DM Sans', sans-serif;
    transition: color .2s;
    text-transform: uppercase;
}
.auth-link:hover { color: #22c55e; }

/* ── FORÇA DO MODAL ────────────────────────────────────────── */
.loud-login-modal[style*="display: none"] { display: none !important; }
