/* template/css/login.css */
.login-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* Hero Section */
.login-hero {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 1.2rem;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.illustration-container {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.login-title h2 {
    color: #1a3a8f;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-title p {
    color: #666;
    margin: 0;
}

/* Alert Messages */
.alert-session {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    border: none;
    display: flex;
    align-items: center;
}

.alert-session i {
    font-size: 1.2rem;
}

/* Form Styles */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #1a3a8f;
    font-weight: 600;
    font-size: 1rem;
}

.input-group {
    position: relative;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #666;
    min-width: 50px;
    justify-content: center;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: auto;
}

.form-control:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.1);
}

/* Password Field */
.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-password {
    color: #1a3a8f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #153077;
    text-decoration: underline;
}

.btn-toggle-password {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-left: none;
    color: #666;
    border-radius: 0 10px 10px 0;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-password:hover {
    background: #e9ecef;
    color: #333;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #dc3545;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: #666;
}

/* Error Messages */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-left: 3px solid #dc3545;
}

.error-message i {
    font-size: 1rem;
}

/* Form Helper */
.form-helper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #666;
    font-size: 0.85rem;
}

.form-helper i {
    color: #1a3a8f;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.form-check {
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #1a3a8f;
    border-color: #1a3a8f;
}

.form-check-label {
    color: #333;
    font-weight: 500;
    cursor: pointer;
    margin-left: 8px;
}

.form-security {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 0.9rem;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: linear-gradient(135deg, #153077, #1a3a8f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #666;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.separator span {
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Alternative Login */
.alternative-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-google, .btn-microsoft {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #db4437;
    color: #db4437;
    transform: translateY(-2px);
}

.btn-microsoft:hover {
    background: #f8f9fa;
    border-color: #00a4ef;
    color: #00a4ef;
    transform: translateY(-2px);
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.login-footer p {
    color: #666;
    margin-bottom: 20px;
}

.footer-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-register, .btn-outline {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register {
    background: #1a3a8f;
    color: white;
    border: none;
}

.btn-register:hover {
    background: #153077;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #1a3a8f;
    border: 2px solid #1a3a8f;
}

.btn-outline:hover {
    background: #f8f9fa;
    color: #153077;
    transform: translateY(-2px);
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
}

.security-notice i {
    color: #28a745;
}

/* FAQ Section */
.login-faq {
    background: #f8f9fa;
}

.section-title {
    font-size: 2rem;
    color: #1a3a8f;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item {
    border: 2px solid #e0e0e0;
    border-radius: 15px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: #1a3a8f;
    font-weight: 600;
    padding: 20px;
    border: none;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #1a3a8f;
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a3a8f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a3a8f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    background: white;
    line-height: 1.6;
}

.accordion-body ul, .accordion-body ol {
    padding-left: 20px;
    margin-top: 10px;
}

.accordion-body li {
    margin-bottom: 8px;
    color: #555;
}

.btn-link {
    color: #1a3a8f;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.device-support {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.device-item i {
    font-size: 2rem;
    color: #1a3a8f;
}

.device-item span {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Section */
.login-cta {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light, .btn-whatsapp {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-light {
    background: white;
    color: #1a3a8f;
    border: none;
}

.btn-light:hover {
    background: #f8f9fa;
    color: #153077;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .illustration-container {
        width: 250px;
        height: 250px;
        font-size: 6rem;
    }
    
    .login-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .login-hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-item {
        justify-content: center;
        flex: 1;
        min-width: 200px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .alternative-login {
        flex-direction: column;
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-register, .btn-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-light, .btn-whatsapp {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 25px;
        margin-top: -30px;
    }
    
    .login-title h2 {
        font-size: 1.6rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .password-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 15px;
    }
}