:root {
    --font-primary: 'Inter', sans-serif;
    
    /* Paleta Clean */
    --primary: #4f46e5;       
    --primary-hover: #4338ca;
    --text-main: #1f2937;     
    --text-secondary: #6b7280;
    
    /* Cores de Fundo */
    --bg-page: #f3f4f6; /* Cinza muito leve */
    --bg-card: #ffffff;
    --bg-input: #f9fafb;
    
    /* Bordas e Sombras */
    --border-light: #e5e7eb;
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --radius-card: 24px;
    --radius-input: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    /* Gradiente sutil de fundo para dar profundidade */
    background: radial-gradient(circle at top left, #f8fafc, #e2e8f0);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

/* Wrapper Central */
.login-center-wrapper {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

/* O Card Flutuante */
.login-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 420px; /* Largura ideal para leitura */
    padding: 3rem 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.5); /* Borda sutil glass */
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-img {
    height: 150px; /* Ajuste conforme seu logo */
    object-fit: contain;
}

.login-welcome {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-welcome h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Inputs (Mantendo o estilo chunky que você gostou) */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
}

.input-wrapper { position: relative; }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-input);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input:focus + .input-icon { color: var(--primary); }

/* Botão (Largo e Moderno) */
.btn-login {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.9rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 999px; /* Botão Pílula total */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-login:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* Links e Footer */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover { color: var(--primary); }

.login-meta {
    margin-top: 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.login-meta p {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Alertas */
.alert-box {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}