:root {
    --primary-color: #ff4d00;
    --primary-dark: #e64400;
    --secondary-color: #2c3e50;
    --text-color: #333333;
    --text-light: #6c757d;
    --background-color: #f8f9fa;
    --input-background: #ffffff;
    --input-border: #e0e0e0;
    --error-color: #dc3545;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  
/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset del zoom que puede ser aplicado por el navegador o extensiones */
html {
    zoom: 100% !important;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--background-color);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    flex-shrink: 0;
}

/* Main Layout */
.login-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
  }
  
/* Sección de Información */
.login-info-section {
    padding: 3rem 2rem 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

.login-hero {
    text-align: left;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 1rem 0;
    line-height: 1.2;
  }
  
.brand {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
  }
  
/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(103, 58, 183, 0.15);
    border-color: #673ab7;
  }
  
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #673ab7 0%, #9575cd 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.2);
    color: white;
  }
  
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
  }
  
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
  }
  
/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1rem;
  }
  
.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.badge svg {
    color: #673ab7;
}

/* Sección del Formulario */
.login-form-section {
    padding: 3rem 4rem 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(103, 58, 183, 0.1);
    width: 100%;
    max-width: 600px;
  }
  
.form-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
  }
  
.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
  }
  
.form-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
  }
  
.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  
/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
  }
  
.form-label svg {
    color: #673ab7;
  }
  
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-background);
  }
  
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.1);
  }
  
.form-input::placeholder {
    color: #adb5bd;
  }
  
/* Botón de Submit */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }
  
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  }
  
.submit-btn:active {
    transform: translateY(0);
  }
  
/* Enlaces del Formulario */
.form-links {
    text-align: center;
    margin-top: 0.5rem;
  }
  
.forgot-password {
    color: #673ab7;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
.forgot-password:hover {
    color: #512da8;
    text-decoration: underline;
  }
  
/* Footer del Formulario */
.form-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
  }
  
.form-footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
.register-link,
.resend-link a {
    color: #673ab7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link:hover,
.resend-link a:hover {
    color: #512da8;
    text-decoration: underline;
}

.resend-link {
    font-size: 0.85rem !important;
    margin-top: 0.5rem;
  }
  
/* Alertas de Error */
.error-alert {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-left: 4px solid var(--error-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
.error-alert strong {
    color: var(--error-color);
    display: block;
    margin-bottom: 0.5rem;
}

.error-list {
    list-style: none;
    margin-top: 0.75rem;
}

.error-list li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #c53030;
    font-size: 0.9rem;
  }
  
.error-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--error-color);
    font-weight: bold;
}

.error-solution {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #feb2b2;
}

.regenerate-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.regenerate-btn:hover {
    background: #c53030;
  }
  
/* Password Toggle */
.login-password-wrapper {
    position: relative;
}

.login-password-input {
    padding-right: 45px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    font-size: 18px;
    color: #6b7280;
    transition: color 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
    }
  
.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
    }

.password-toggle-btn span {
    user-select: none;
    display: inline-block;
}

/* CAPTCHA Container */
#captchaContainer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
#captchaContainer p:first-child {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
#captchaContainer .flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

#captchaContainer label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

#captchaQuestion {
    background: linear-gradient(135deg, #ff4d00 0%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.25rem 0.75rem;
  }
  
#captchaContainer input[type="number"] {
    border: 2px solid var(--input-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

#captchaContainer input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.1);
    outline: none;
}

#captchaContainer button[type="button"] {
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#captchaContainer button[type="button"]:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(3px);
}

.modal-content {
    max-width: 450px;
    width: 100%;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon {
    width: 24px;
    height: 24px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.2s;
    padding: 5px;
}

.modal-close:hover {
    color: rgba(0, 0, 0, 0.8);
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.modal-button {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal por tipo */
.modal-success {
    border-top: 4px solid var(--success-color);
}

.modal-success .modal-icon {
    color: var(--success-color);
}

.modal-success .modal-button {
    background: var(--success-color);
}

.modal-error {
    border-top: 4px solid var(--error-color);
}

.modal-error .modal-icon {
    color: var(--error-color);
}

.modal-error .modal-button {
    background: var(--error-color);
}

.modal-warning {
    border-top: 4px solid #ffc107;
}

.modal-warning .modal-icon {
    color: #ffc107;
}

.modal-warning .modal-button {
    background: #ffc107;
}

.modal-info {
    border-top: 4px solid var(--primary-color);
}

.modal-info .modal-icon {
    color: var(--primary-color);
}

.modal-info .modal-button {
    background: var(--primary-color);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
}
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-main {
        grid-template-columns: 1fr;
        padding: 2rem 0;
}

    .login-info-section {
        display: none;
}

    .login-form-section {
        box-shadow: none;
        padding: 2rem 1rem;
    }
    
    .form-container {
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
}

    .login-main {
        padding: 1.5rem 0;
}

    .login-form-section {
        padding: 1.5rem 0.75rem;
    }
    
    .form-container {
        padding: 1.75rem 1.25rem;
        margin: 0 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .form-header h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
}

    .hero-subtitle {
        font-size: 1rem;
}
}

@media (max-width: 480px) {
    .login-main {
        padding: 1rem 0;
    }
    
    .login-form-section {
        padding: 1rem 0.5rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
}

    .form-header h2::after {
        width: 50px;
}

    .submit-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
}

    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
}

/* Utilidades */
.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
  }
  