/* =========================================
   1. VARIÁVEIS (THEME)
   ========================================= */
:root {
    /* Fundo e Superfícies */
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-error: #fee2e2;

    /* Tipografia e Cores de Texto */
    --text-main: #1f2937;
    --text-heading: #111827;
    --text-muted: #6b7280;
    --text-label: #64748b;
    --text-input: #334155;
    --text-error: #991b1b;

    /* Cores de Marca e Ação */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --ring-primary: rgba(59, 130, 246, 0.15);

    /* Bordas */
    --border-card: #e5e7eb;
    --border-input: #cbd5e1;
    --border-error: #f87171;

    /* Sombras */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* =========================================
   2. BASE & RESET
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* =========================================
   3. LAYOUT (CONTAINER)
   ========================================= */
.login-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
}

/* =========================================
   4. COMPONENTES
   ========================================= */

/* Cabeçalho do Login */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header i {
    font-size: 46px;
    color: var(--primary);
    margin-bottom: 16px;
}
.login-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-heading);
}
.login-header p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Mensagem de Erro */
.error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-error);
    color: var(--text-error);
    border: 1px solid var(--border-error);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* Formulário e Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border-input);
    background-color: var(--bg-input);
    color: var(--text-input);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring-primary);
}

/* Botão de Submit */
.btn-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 10px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover {
    background: var(--primary-hover);
}