/* 👉 VARIÁVEIS MANTIDAS */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --bg: #f4f4f9;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d1d5db;
}

body.dark {
    --bg: #020617;
    --card: #0f172a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1e293b;
}

body {
    background: var(--bg);
    height: 100vh;
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
}

.card {
    width: 360px;
    background: var(--card);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: fadeUp .6s ease;
    border: 1px solid var(--border);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 { text-align: center; margin-bottom: 25px; font-weight: 700; color: var(--primary); }

input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    background: var(--bg);
    color: var(--text);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

/* 🚀 ESTILO DO BOTÃO COM SUPORTE À ANIMAÇÃO */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover { opacity: 0.9; transform: translateY(-1px); }

/* Classe de estado carregando */
button.loading {
    opacity: 0.7;
    pointer-events: none;
    transform: scale(0.98);
}

a {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}
a:hover { color: var(--primary); }