/**
 * LOGIN.CSS - Sistema da Ludmila v1.0
 * Estilos para páginas de Login e Reset Password
 * Fase 4: Redesign da Interface
 * 
 * PALETA LILÁS APLICADA
 */

/* ============================================
   LAYOUT PRINCIPAL
============================================ */

body {
    background: linear-gradient(135deg, #7D3C98 0%, #9B59B6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container,
.reset-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    animation: slideIn 0.5s ease;
}

/* ============================================
   LOGO E HEADER
============================================ */

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    color: #7D3C98;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.logo .version,
.logo .subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

/* ============================================
   MENSAGENS DE ALERTA
============================================ */

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.message.error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #e74c3c;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #27ae60;
}

.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #3498db;
}

.message::before {
    content: '⚠️';
    font-size: 18px;
}

.message.success::before {
    content: '✅';
}

.message.info::before {
    content: 'ℹ️';
}

/* ============================================
   BOTÕES
============================================ */

.btn-login,
.btn-reset {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #9B59B6 0%, #7D3C98 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(123, 60, 152, 0.3);
}

.btn-login:hover,
.btn-reset:hover {
    background: linear-gradient(135deg, #8E44AD 0%, #7D3C98 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 60, 152, 0.4);
}

.btn-login:active,
.btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(123, 60, 152, 0.3);
}

.btn-login:disabled,
.btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   LINKS
============================================ */

.links {
    margin-top: 24px;
    text-align: center;
}

.links a {
    color: #9B59B6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 8px;
}

.links a:hover {
    color: #7D3C98;
    text-decoration: underline;
}

.separator {
    color: #ccc;
    margin: 0 8px;
}

/* ============================================
   INFORMAÇÕES ADICIONAIS
============================================ */

.info-box {
    background: #F4ECFF;
    border-left: 4px solid #9B59B6;
    padding: 16px;
    margin-top: 24px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.info-box strong {
    color: #7D3C98;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-box ul {
    margin-left: 20px;
    margin-top: 8px;
}

.info-box li {
    margin-bottom: 4px;
}

/* ============================================
   CAMPO DE SENHA COM TOGGLE
============================================ */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #9B59B6;
}

/* ============================================
   VALIDAÇÃO DE SENHA
============================================ */

.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

.password-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak .password-strength-fill {
    width: 33%;
    background: #e74c3c;
}

.strength-medium .password-strength-fill {
    width: 66%;
    background: #f39c12;
}

.strength-strong .password-strength-fill {
    width: 100%;
    background: #27ae60;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.password-requirements ul {
    margin-left: 20px;
    margin-top: 4px;
}

.password-requirements li {
    margin-bottom: 2px;
}

.password-requirements li.valid {
    color: #27ae60;
}

.password-requirements li.valid::before {
    content: '✓ ';
    font-weight: bold;
}

.password-requirements li.invalid {
    color: #e74c3c;
}

.password-requirements li.invalid::before {
    content: '✗ ';
    font-weight: bold;
}

/* ============================================
   RESPONSIVIDADE
============================================ */

@media (max-width: 480px) {
    .login-container,
    .reset-container {
        padding: 30px 24px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .btn-login,
    .btn-reset {
        padding: 12px;
        font-size: 15px;
    }
}

/* ============================================
   ANIMAÇÕES
============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FIM DO ARQUIVO
============================================ */
