/* ========================================
   Bensvet - Sistema de Login
   Estilo único para todas as páginas
   ======================================== */

:root {
    --primary: #556DE3;
    --secondary: #8055E0;
    --accent: #4F4EBD;
    --dark: #3B4E59;
    --light: #7392A3;
}

/* ========================================
   Layout Base
   ======================================== */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================================
   Cards
   ======================================== */

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: fadeIn 0.5s ease-in;
}

.card:hover {
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 16px 16px 0 0 !important;
    padding: 2rem;
    text-align: center;
}

.card-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

/* ========================================
   Botões
   ======================================== */

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(85, 109, 227, 0.3);
}

.btn-primary:disabled {
    background: #7392A3;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover {
    background: #7392A3;
    transform: none;
    box-shadow: none;
}

/* ========================================
   Formulários
   ======================================== */

label {
    color: var(--dark);
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(85, 109, 227, 0.25);
}

/* ========================================
   Alertas
   ======================================== */

.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background-color: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
    border-left: 4px solid #f56565;
}

.alert-success {
    background-color: #f0fff4;
    border-color: #9ae6b4;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

/* ========================================
   Nota de Atualização (Banner)
   ======================================== */

.nota-atualizacao {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid #d1d9f5;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(85, 109, 227, 0.15);
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nota-atualizacao h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.nota-atualizacao p {
    color: var(--dark);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.nota-atualizacao p:last-child {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.nota-atualizacao a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.nota-atualizacao a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ========================================
   Links
   ======================================== */

.forgot-password {
    text-align: center;
    margin-top: 0.5rem;
}

.forgot-password a {
    color: var(--light);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
}

.external-link-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ========================================
   Links de Suporte
   ======================================== */

.support-links {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.support-links p {
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.support-links a {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 110px;
    text-align: center;
}

.support-whatsapp {
    background-color: #25D366;
    color: white;
}

.support-whatsapp:hover {
    background-color: #20BA5A;
    color: white;
}

.support-email {
    background-color: var(--light);
    color: white;
}

.support-email:hover {
    background-color: var(--primary);
    color: white;
}

/* ========================================
   Ícones
   ======================================== */

.icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

/* ========================================
   Social Links
   ======================================== */

.social-links a {
    color: var(--dark);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */

.footer-text {
    text-align: center;
    color: var(--dark);
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* ========================================
   Password Reset - Recursos Específicos
   ======================================== */

.password-strength {
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-weak { 
    background: #dc3545; 
    width: 33%; 
}

.strength-medium { 
    background: #ffc107; 
    width: 66%; 
}

.strength-strong { 
    background: #28a745; 
    width: 100%; 
}

.password-requirements {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirement.met {
    color: #28a745;
}

.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    user-select: none;
}

.toggle-password:hover {
    color: var(--accent);
}

.password-wrapper {
    position: relative;
}

.password-box {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 13px;
}

/* ========================================
   Responsividade
   ======================================== */

@media (max-width: 768px) {
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .social-links a {
        margin: 0 10px;
        font-size: 1.3rem;
    }
    
    .support-links a {
        display: block;
        margin: 0.5rem 0;
    }
}
