/* ==========================================================
   FAB - Telas de autenticacao (login, esqueci, redefinir)
   Extraido de login.php para servir as tres telas.
   ========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; min-height: 100vh; display: flex; }

.login-left {
    flex: 0 0 420px;
    background: linear-gradient(160deg, #7F1D1D 0%, #991B1B 40%, #B91C1C 100%);
    color: white;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.login-left::after {
    content: '';
    position: absolute;
    bottom: -120px; left: -60px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.login-left .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}
.login-left .logo-icon {
    width: 48px; height: 48px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC2626;
    font-size: 22px;
    font-weight: 800;
}
.login-left .logo-text {
    font-size: 20px;
    font-weight: 700;
}
.login-left .logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.login-left .features {
    position: relative;
    z-index: 1;
}
.login-left .features h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 32px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.feature-item i {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.feature-item span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: white;
}
.login-form {
    width: 100%;
    max-width: 400px;
}
.login-form h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}
.login-form .subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 32px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #DC2626;
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.login-btn:hover { background: #991B1B; }
.error-msg {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #991B1B;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F3F4F6;
    text-align: center;
    font-size: 12px;
    color: #9CA3AF;
}
.login-footer i { margin-right: 4px; }

@media (max-width: 768px) {
    body { flex-direction: column; }
    .login-left { flex: none; padding: 32px 24px; }
    .login-right { padding: 32px 24px; }
}

/* ─── Recuperação de senha ─────────────────────────────────────────────── */

.info-msg {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #166534;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.info-msg i { margin-top: 2px; flex-shrink: 0; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
}
.back-link:hover { color: #DC2626; }

.forgot-link {
    display: block;
    margin-top: 14px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
}
.forgot-link:hover { color: #DC2626; }

.hint {
    margin-top: 8px;
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.5;
}

.expira-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 20px;
}

.login-btn:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}
