/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #001689;
    --primary-dark: #001270;
    --primary-light: #1a2e94;
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100dvh;
    /* Permitir scroll vertical y evitar recortes en móviles */
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--gray-50);
}

/* ===== LAYOUT PRINCIPAL ===== */
.login-wrapper {
    display: flex;
    /* Permitir que crezca más del viewport si el contenido lo requiere */
    height: auto;
    min-height: 100dvh;
}

/* ===== PANEL IZQUIERDO - FORMULARIO ===== */
.login-panel {
    flex: 0 0 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
    /* Permitir que el contenido alto no se recorte */
    overflow-y: auto;
}

.login-container {
    width: 100%;
    max-width: 460px;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== HEADER DEL LOGIN ===== */
.login-header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-principal {
    height: 100px;
    width: auto;
    transition: var(--transition);
}

.logo-principal:hover {
    transform: scale(1.05);
}

.system-info {
    text-align: center;
}

.system-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.system-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}

/* ===== SECCIONES DE FORMULARIO ===== */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-section.active {
    display: block;
}

/* ===== CONTENEDOR DEL FORMULARIO CON SOMBRA ===== */
.form-content-wrapper {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

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

/* ===== HEADER DE FORMULARIO ===== */
.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.form-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.status-icon.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    color: var(--white);
}

.status-icon.info {
    background: linear-gradient(135deg, var(--info-color) 0%, #1d4ed8 100%);
    color: var(--white);
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    z-index: 2;
    color: var(--gray-400);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 22, 137, 0.1);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

/* ===== TOGGLE PASSWORD ===== */
.toggle-password {
    position: absolute;
    right: 1rem;
    z-index: 2;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.875rem;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(0, 22, 137, 0.05);
}

/* ===== BOTONES ===== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, var(--warning-color) 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.btn-login,
.btn-change-password {
    width: 100%;
    margin-bottom: 1rem;
}

/* ===== ESTADOS DE CARGA ===== */
.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FORM FOOTER Y ACTIONS ===== */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

.link-forgot {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 6px;
}

.link-forgot:hover {
    color: var(--primary-dark);
    background: rgba(0, 22, 137, 0.05);
}

/* ===== REQUERIMIENTOS DE CONTRASEÑA ===== */
.password-requirements {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.password-requirements i {
    color: var(--info-color);
    font-size: 0.875rem;
}

/* ===== FOOTER DEL LOGIN ===== */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0;
}

.footer-text i {
    color: var(--primary-color);
}

.footer-logo {
    margin-top: 0.5rem;
}

.logo-amaxonia-footer {
    height: 55px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.logo-amaxonia-footer:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== PANEL DERECHO - IMAGEN ===== */
.image-panel {
    flex: 0 0 50%;
    background: url("../../../../includes/assets/img/bg/login.jpg") center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 22, 137, 0.4) 0%, 
        rgba(26, 46, 148, 0.3) 50%, 
        rgba(0, 18, 112, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    max-width: 500px;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

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

.overlay-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.overlay-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.overlay-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
}

.feature i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.875rem;
}

/* ===== ALERTAS ===== */
#alert-container {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert .btn-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: currentColor;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: 4px;
}

.alert .btn-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* ===== VALIDACIÓN DE CAMPOS ===== */
/* Se han removido las clases de validación visual para evitar checks automáticos */

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ===== INDICADOR DE FORTALEZA DE CONTRASEÑA ===== */
.password-strength-indicator {
    margin-top: 0.75rem;
}

.progress {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
/* Desktop first approach - improving mobile experience */
@media (max-width: 1024px) {
    .login-panel {
        flex: 0 0 60%;
    }
    
    .image-panel {
        flex: 0 0 40%;
    }
    
    .overlay-title {
        font-size: 2rem;
    }
    
    .overlay-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        /* Evitar forzar 100vh en móviles para permitir crecimiento natural */
        height: auto;
        min-height: 100dvh;
        overflow-y: visible;
    }
    
    /* Hide image panel on mobile */
    .image-panel {
        display: none;
    }
    
    .login-panel {
        flex: 1;
        padding: 1rem;
        /* Permitir que el panel crezca según el contenido */
        min-height: auto;
        justify-content: flex-start;
        padding-top: 1rem;
        overflow-y: visible;
    }
    
    .login-container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
    
    .logo-container {
        margin-bottom: 0.75rem;
    }
    
    .logo-principal {
        height: 50px;
    }
    
    .system-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .system-subtitle {
        font-size: 0.75rem;
    }
    
    .form-content-wrapper {
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    
    .form-header {
        margin-bottom: 1rem;
    }
    
    .form-title {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
    
    .form-description {
        font-size: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem 0.625rem 2.25rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 0.875rem;
    }
    
    .toggle-password {
        right: 0.75rem;
        padding: 0.375rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .form-footer {
        margin-top: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .login-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .logo-amaxonia-footer {
        height: 35px;
    }
    
    .footer-text {
        font-size: 0.6875rem;
    }
    
    .status-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .password-requirements-v2 {
        margin-top: 0.75rem;
        padding: 0.75rem;
    }
    
    .password-requirements-v2 .title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .password-requirements-v2 li {
        font-size: 0.75rem;
    }
    
    .token-info {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .token-info .info-text {
        font-size: 0.6875rem;
    }
}

/* ===== PANTALLAS CON POCA ALTURA (ej. laptops en 1366x768 o tablets landscape) ===== */
@media (max-height: 700px) and (min-width: 769px) {
    .login-header { margin-bottom: 1.5rem; }
    .logo-principal { height: 80px; }
    .logo-amaxonia-footer { height: 45px; }
    .form-content-wrapper { margin-top: 0.5rem; padding: 1.5rem; }
    .overlay-title { font-size: 2rem; }
    .login-panel { align-items: flex-start; }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 0.75rem;
        padding-top: 0.75rem;
        align-items: flex-start;
        overflow-y: visible;
    }
    
    .login-header {
        margin-bottom: 0.75rem;
    }
    
    .logo-container {
        margin-bottom: 0.5rem;
    }
    
    .logo-principal {
        height: 45px;
    }
    
    .logo-amaxonia-footer {
        height: 30px;
    }
    
    .system-title {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }
    
    .system-subtitle {
        font-size: 0.6875rem;
    }
    
    .form-content-wrapper {
        padding: 0.875rem;
        border-radius: 12px;
        margin-top: 0.5rem;
    }
    
    .form-header {
        margin-bottom: 0.875rem;
    }
    
    .form-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .form-description {
        font-size: 0.6875rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .form-control {
        padding: 0.625rem 0.75rem 0.625rem 2rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .input-icon {
        left: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .toggle-password {
        right: 0.625rem;
        padding: 0.25rem;
        font-size: 0.8125rem;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .form-footer {
        margin-top: 0.75rem;
    }
    
    .form-actions {
        gap: 0.5rem;
        margin-top: 0.875rem;
    }
    
    .login-footer {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.625rem;
    }
    
    .status-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .password-requirements-v2 {
        margin-top: 0.625rem;
        padding: 0.625rem;
    }
    
    .password-requirements-v2 .title {
        font-size: 0.6875rem;
        margin-bottom: 0.5rem;
    }
    
    .password-requirements-v2 li {
        font-size: 0.6875rem;
        gap: 0.375rem;
    }
    
    .token-info {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .token-info .info-text {
        font-size: 0.625rem;
    }
    
    #token_code {
        font-size: 0.9375rem !important;
        letter-spacing: 0.125rem !important;
    }
}

/* ===== UTILIDADES ===== */
.d-none {
    display: none !important;
}

.text-center {
    text-align: center !important;
}

.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade.show {
    opacity: 1;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn:focus,
.form-control:focus,
.toggle-password:focus,
.link-forgot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== EFECTOS ESPECIALES ===== */
.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    z-index: 11;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* ===== EXTRA SMALL DEVICES ===== */
@media (max-width: 360px) {
    .login-panel {
        padding: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .login-header {
        margin-bottom: 0.5rem;
    }
    
    .logo-container {
        margin-bottom: 0.375rem;
    }
    
    .logo-principal {
        height: 40px;
    }
    
    .logo-amaxonia-footer {
        height: 28px;
    }
    
    .system-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .system-subtitle {
        font-size: 0.625rem;
    }
    
    .form-content-wrapper {
        padding: 0.75rem;
        margin-top: 0.375rem;
    }
    
    .form-header {
        margin-bottom: 0.75rem;
    }
    
    .form-title {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }
    
    .form-description {
        font-size: 0.625rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-label {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control {
        padding: 0.5rem 0.625rem 0.5rem 1.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .input-icon {
        left: 0.5rem;
        font-size: 0.75rem;
    }
    
    .toggle-password {
        right: 0.5rem;
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.5625rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .form-footer {
        margin-top: 0.625rem;
    }
    
    .form-actions {
        gap: 0.375rem;
        margin-top: 0.75rem;
    }
    
    .login-footer {
        margin-top: 0.875rem;
        padding-top: 0.625rem;
    }
    
    .footer-text {
        font-size: 0.5625rem;
    }
    
    .status-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .password-requirements-v2 {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .password-requirements-v2 .title {
        font-size: 0.625rem;
        margin-bottom: 0.375rem;
    }
    
    .password-requirements-v2 li {
        font-size: 0.625rem;
        gap: 0.25rem;
    }
    
    .token-info {
        margin-top: 0.375rem;
        padding: 0.375rem;
    }
    
    .token-info .info-text {
        font-size: 0.5625rem;
    }
    
    #token_code {
        font-size: 0.875rem !important;
        letter-spacing: 0.1rem !important;
    }
}

.btn-secondary-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary-outline:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.password-requirements-v2 {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.password-requirements-v2 .title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.75rem 0;
}

.password-requirements-v2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.password-requirements-v2 li {
    font-size: 0.8125rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements-v2 li i {
    color: var(--success-color);
    font-size: 0.875rem;
}

/* ===== ESTILOS PARA TOKEN DE VERIFICACIÓN ===== */
.token-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6edff 100%);
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.token-info .info-text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.token-info .info-text i {
    font-size: 0.875rem;
}

/* Estilo especial para el campo de token */
#token_code {
    text-align: center !important;
    font-size: 1.125rem !important;
    letter-spacing: 0.25rem !important;
    font-family: 'Courier New', monospace !important;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== ESTILOS PARA BOTONES DE ACCIÓN ===== */
.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:active {
    transform: translateY(0);
}

/* ===== ESTILOS PARA ICONOS DE ESTADO ===== */
.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.status-icon.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 2px solid #f59e0b;
}

.status-icon.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
    border: 2px solid var(--info-color);
}

.status-icon.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

/* ===== ANIMACIONES PARA TRANSICIONES ===== */
.form-section {
    transition: var(--transition);
}

.form-section:not(.active) {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.form-section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/* ===== RESPONSIVE PARA NUEVOS ELEMENTOS ===== */
/* Los estilos responsive para estos elementos ya están incluidos en las media queries anteriores */