@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --cbic-red: #E3262E;
    --btn-dark: #083782;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --bg-page: #F1F5F9;
    --bg-card: #FFFFFF;
    --microsoft-blue: #0078D4;
}

body {
    /* Fundo quase preto com um feixe de luz azulado no centro */
    background: radial-gradient(circle at 50% 50%, #1E293B 0%, #020617 100%);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.login-wrapper {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    overflow: hidden;
    margin-bottom: 24px;
}

.brand-section {
    flex: 1;
    padding: 60px 40px;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
}

.logo-img {
    max-width: 350px;
    margin-bottom: 40px;
}

.brand-section h2 {
    color: var(--text-dark);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    margin-top: 0;
}

.brand-section p {
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.form-section {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section h1 {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 32px 0;
}

/* Alertas Customizados */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}
.alert-danger { background-color: #FEF2F2; color: #991B1B; border-left: 4px solid #DC2626; }
.alert-success { background-color: #F0FDF4; color: #166534; border-left: 4px solid #16A34A; }
.alert-warning { background-color: #FFFBEB; color: #92400E; border-left: 4px solid #D97706; text-align: center; }

/* Formulário Local */
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.icon-left {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-dark);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control::placeholder {
    font-weight: 400;
    color: #94A3B8;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-muted);
}

#pass {
    padding-right: 40px;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
}

/* Botão Entrar Local */
.btn-entrar {
    width: 100%;
    background-color: var(--btn-dark);
    color: white;
    padding: 14px; 
    border: none;
    border-radius: 6px;
    font-size: 15px; 
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-entrar:hover {
    background-color: #062863;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0 24px 0;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}
.divider span { padding: 0 16px; }

/* Botão Microsoft */
.btn-microsoft-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid transparent; 
    padding: 14px; 
    border-radius: 6px;
    font-size: 15px; 
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-microsoft-outline svg {
    color: var(--text-muted);
    transition: color 0.2s ease-in-out;
}

/* EFEITO DE HOVER ATUALIZADO */
.btn-microsoft-outline:hover {
    /* Adiciona apenas um cinza bem claro no fundo para feedback visual suave */
    background-color: #F8FAFC; 
}

.btn-microsoft-outline:hover svg {
    /* Transforma APENAS a logo (SVG) em azul */
    color: var(--microsoft-blue);
}

footer {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .login-wrapper { flex-direction: column; }
    .brand-section {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 40px 24px;
    }
    .form-section { padding: 40px 24px; }
}

/* ── MFA (Two-Factor) page — extraído de admin/auth/mfa.blade.php ── */
.mfa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c4da2, #1a6fd4);
    margin: 0 auto 1.25rem;
}
.code-input {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .5rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace, sans-serif;
}
.recovery-toggle {
    background: none;
    border: none;
    color: #6b7280;
    font-size: .8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.recovery-toggle:hover { color: #0c4da2; }
