/* Configurações Globais */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    --success-bg: #dcfce7;
    --success-text: #166534;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Card de Login */
.card {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

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

/* Campos de Entrada */
input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Botão */
button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s active;
}

button:hover {
    background-color: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

/* Mensagens de Alerta */
.msg {
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.error { background: var(--error-bg); color: var(--error-text); }
.success { background: var(--success-bg); color: var(--success-text); }

/* Estilo para o campo de Código (OTP) */
.code-input {
    letter-spacing: 12px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

/* Link Voltar */
.btn-back {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary);
}

/* Animação */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}