* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-color: #15b4b7;
    --primary-dark: #0f9497;
    --primary-light: #4dd0d3;
    --primary-glow: rgba(21, 180, 183, 0.4);
    
    /* Colores de texto */
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    
    /* Fondos */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Bordes */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Estados */
    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* Degradados */
    --gradient-primary: linear-gradient(135deg, #15b4b7 0%, #0f9497 100%);
    --gradient-bg: linear-gradient(135deg, #e0f7f8 0%, #d4f1f4 50%, #b2ebf2 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 40px -10px var(--primary-glow);
}

[data-theme="dark"] {
    --text-dark: #f1f5f9;
    --text-gray: #cbd5e1;
    --text-light: #94a3b8;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    --border-color: #334155;
    --border-light: #475569;
    
    --gradient-bg: linear-gradient(135deg, #1a3a3f 0%, #0f2027 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ==================== SECCIÓN IZQUIERDA ==================== */
.left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Partículas animadas de fondo */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Theme Toggle Premium */
.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
    border-color: var(--primary-color);
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-icon {
    width: 26px;
    height: 26px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Login Box */
.login-box {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 10;
}

/* Logo Container con Glassmorphism */
.logo-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.logo-wrapper {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(21, 180, 183, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .logo-wrapper {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(51, 65, 85, 0.8);
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 30px;
    padding: 3px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-wrapper:hover::before {
    opacity: 1;
}

.logo-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.logo-wrapper:hover .logo-glow {
    opacity: 1;
}

.logo-wrapper:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-xl), 0 0 80px rgba(21, 180, 183, 0.3);
}

.logo {
    height: 90px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(21, 180, 183, 0.2));
    transition: filter 0.3s ease;
}

.logo-wrapper:hover .logo {
    filter: drop-shadow(0 8px 20px rgba(21, 180, 183, 0.4));
}

/* Header Content */
.header-content {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 1rem;
    vertical-align: middle;
    border-radius: 2px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 500;
}

/* ==================== FORMULARIO ==================== */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.label-text {
    flex: 1;
}

.label-required {
    color: var(--error-color);
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-icon {
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 1.125rem 1.25rem 1.125rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.input-wrapper input::placeholder {
    color: var(--text-light);
}

.input-border {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.input-wrapper input:focus {
    outline: none;
    border-color: transparent;
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-primary);
    }
.input-wrapper input:focus ~ .input-border {
opacity: 1;
}
.input-wrapper input:focus ~ .input-icon-wrapper .input-icon {
color: var(--primary-color);
transform: scale(1.1);
}
.input-wrapper input.error {
border-color: var(--error-color);
background: rgba(239, 68, 68, 0.03);
}
.toggle-password {
position: absolute;
right: 0.75rem;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 10px;
cursor: pointer;
color: var(--text-gray);
padding: 0.625rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
z-index: 2;
}
.toggle-password:hover {
color: var(--primary-color);
background: var(--bg-tertiary);
border-color: var(--primary-color);
transform: scale(1.05);
}
.error-message {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--error-color);
font-size: 0.875rem;
margin-top: 0.625rem;
font-weight: 600;
}
.error-message::before {
content: '⚠';
font-size: 1.125rem;
}
/* Form Options */
.form-options {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
gap: 1rem;
}
.checkbox-container {
display: flex;
align-items: center;
cursor: pointer;
position: relative;
user-select: none;
}
.checkbox-container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.checkmark {
position: relative;
height: 22px;
width: 22px;
background: var(--bg-primary);
border: 2px solid var(--border-color);
border-radius: 6px;
margin-right: 0.75rem;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.check-icon {
width: 14px;
height: 14px;
opacity: 0;
transform: scale(0);
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.checkbox-container input:checked ~ .checkmark {
background: var(--gradient-primary);
border-color: var(--primary-color);
}
.checkbox-container input:checked ~ .checkmark .check-icon {
opacity: 1;
transform: scale(1);
}
.checkbox-container:hover .checkmark {
border-color: var(--primary-color);
transform: scale(1.05);
}
.checkbox-text {
color: var(--text-dark);
font-weight: 600;
font-size: 0.95rem;
}
.forgot-link {
display: flex;
align-items: center;
gap: 0.375rem;
color: var(--primary-color);
text-decoration: none;
font-size: 0.95rem;
font-weight: 700;
transition: all 0.3s ease;
padding: 0.375rem 0.75rem;
border-radius: 8px;
}
.forgot-link:hover {
background: rgba(21, 180, 183, 0.1);
gap: 0.625rem;
}
/* Submit Button Premium */
.submit-btn {
width: 100%;
padding: 0;
background: var(--gradient-primary);
color: white;
border: none;
border-radius: 14px;
font-size: 1.0625rem;
font-weight: 700;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: var(--shadow-lg), var(--shadow-primary);
position: relative;
overflow: hidden;
height: 60px;
}
.btn-content {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
position: relative;
z-index: 2;
transition: all 0.3s ease;
}
.btn-icon {
transition: transform 0.3s ease;
}
.btn-shine {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.5s ease;
}
.submit-btn:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-xl), 0 15px 50px rgba(21, 180, 183, 0.5);
}
.submit-btn:hover .btn-shine {
left: 100%;
}
.submit-btn:hover .btn-icon {
transform: translateX(4px);
}
.submit-btn:active {
transform: translateY(-1px);
}
/* Divider */
.divider {
display: flex;
align-items: center;
gap: 1rem;
margin: 2.5rem 0;
}
.divider-line {
flex: 1;
height: 2px;
background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.divider-text {
color: var(--text-light);
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
display: flex;
align-items: center;
gap: 0.5rem;
}
/* Footer */
.footer-content {
margin-top: 2.5rem;
}
.footer-text {
text-align: center;
color: var(--text-gray);
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.footer-text svg {
color: var(--primary-color);
}
.footer-copyright {
text-align: center;
color: var(--text-light);
font-size: 0.8125rem;
font-weight: 500;
}
/* ==================== SECCIÓN DERECHA ==================== */
.right-section {
flex: 1;
background: var(--gradient-bg);
display: flex;
align-items: center;
justify-content: center;
padding: 4rem;
position: relative;
overflow: hidden;
}
/* Fondo animado con orbes */
.bg-animated {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
.gradient-orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.4;
animation: orbFloat 20s infinite ease-in-out;
}
.orb-1 {
width: 400px;
height: 400px;
background: radial-gradient(circle, var(--primary-color), transparent);
top: -10%;
right: -10%;
animation-delay: 0s;
}
.orb-2 {
width: 500px;
height: 500px;
background: radial-gradient(circle, #4dd0d3, transparent);
bottom: -15%;
left: -15%;
animation-delay: 7s;
}
.orb-3 {
width: 350px;
height: 350px;
background: radial-gradient(circle, var(--primary-dark), transparent);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-delay: 14s;
}
@keyframes orbFloat {
0%, 100% {
transform: translate(0, 0) scale(1);
}
33% {
transform: translate(30px, -30px) scale(1.1);
}
66% {
transform: translate(-30px, 30px) scale(0.9);
}
}
/* Grid de fondo */
.grid-background {
position: absolute;
inset: 0;
background-image:
linear-gradient(var(--border-light) 1px, transparent 1px),
linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
background-size: 50px 50px;
opacity: 0.3;
}
.info-content {
position: relative;
z-index: 2;
text-align: center;
max-width: 650px;
}
/* Iconos flotantes mejorados */
.floating-icons {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.icon-float {
position: absolute;
animation: iconFloat 10s ease-in-out infinite;
}
.icon-inner {
font-size: 3.5rem;
filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
transition: all 0.3s ease;
}
.icon-float:hover .icon-inner {
transform: scale(1.2) rotate(15deg);
filter: drop-shadow(0 12px 24px rgba(21, 180, 183, 0.4));
}
.icon-1 { top: 8%; left: 8%; animation-delay: 0s; }
.icon-2 { top: 12%; right: 12%; animation-delay: 2s; }
.icon-3 { top: 35%; right: 8%; animation-delay: 4s; }
.icon-4 { bottom: 18%; right: 18%; animation-delay: 6s; }
.icon-5 { bottom: 25%; left: 12%; animation-delay: 8s; }
.icon-6 { bottom: 55%; left: 8%; animation-delay: 10s; }
@keyframes iconFloat {
0%, 100% {
transform: translateY(0px) rotate(0deg);
opacity: 0.4;
}
50% {
transform: translateY(-30px) rotate(10deg);
opacity: 0.6;
}
}
/* Brand Content */
.brand-content {
position: relative;
z-index: 3;
}
.brand-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
padding: 0.625rem 1.25rem;
border-radius: 50px;
font-weight: 700;
font-size: 0.875rem;
color: var(--primary-color);
margin-bottom: 2rem;
box-shadow: var(--shadow-md);
border: 2px solid rgba(21, 180, 183, 0.2);
}
[data-theme="dark"] .brand-badge {
background: rgba(30, 41, 59, 0.9);
}
.brand-badge svg {
animation: spin 3s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.brand-title {
font-size: 5.5rem;
font-weight: 900;
margin-bottom: 1.5rem;
line-height: 1;
color: var(--text-dark);
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
letter-spacing: -0.03em;
}
.brand-highlight {
color: var(--primary-color);
position: relative;
display: inline-block;
}
.brand-highlight::after {
content: '';
position: absolute;
bottom: 0.2em;
left: 0;
right: 0;
height: 0.2em;
background: var(--primary-color);
opacity: 0.3;
z-index: -1;
}
.brand-tagline {
font-size: 2rem;
font-weight: 700;
color: var(--text-dark);
margin-bottom: 1rem;
letter-spacing: -0.01em;
}
.brand-description {
color: var(--text-gray);
font-size: 1.125rem;
margin-bottom: 3.5rem;
font-weight: 500;
line-height: 1.8;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
/* Features Premium */
.features {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 3rem;
}
.feature-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
padding: 1.75rem;
border-radius: 18px;
box-shadow: var(--shadow-lg);
display: flex;
align-items: center;
gap: 1.5rem;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border: 2px solid rgba(255, 255, 255, 0.6);
position: relative;
overflow: hidden;
}
[data-theme="dark"] .feature-card {
background: rgba(30, 41, 59, 0.95);
border-color: rgba(51, 65, 85, 0.6);
}
.feature-card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, transparent, rgba(21, 180, 183, 0.05));
opacity: 0;
transition: opacity 0.3s ease;
}
.feature-card:hover {
transform: translateX(10px) translateY(-5px);
box-shadow: var(--shadow-xl), -10px 20px 40px rgba(21, 180, 183, 0.2);
border-color: var(--primary-color);
}
.feature-card:hover::before {
opacity: 1;
}
.feature-icon-wrapper {
flex-shrink: 0;
}
.feature-icon {
width: 60px;
height: 60px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
background: var(--icon-color);
box-shadow: var(--shadow-md);
transition: all 0.3s ease;
position: relative;
}
.feature-icon::after {
content: '';
position: absolute;
inset: -3px;
border-radius: 14px;
background: var(--icon-color);
opacity: 0.3;
filter: blur(10px);
z-index: -1;
}
.feature-card:hover .feature-icon {
transform: scale(1.1) rotate(-5deg);
box-shadow: var(--shadow-lg);
}
.feature-content {
flex: 1;
text-align: left;
}
.feature-title {
font-weight: 700;
color: var(--text-dark);
margin-bottom: 0.375rem;
font-size: 1.0625rem;
}
.feature-desc {
color: var(--text-gray);
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.5;
}
.feature-arrow {
color: var(--text-light);
transition: all 0.3s ease;
opacity: 0;
transform: translateX(-10px);
}
.feature-card:hover .feature-arrow {
opacity: 1;
transform: translateX(0);
color: var(--primary-color);
}
/* Stats Container */
.stats-container {
display: flex;
align-items: center;
justify-content: center;
gap: 2.5rem;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(20px);
padding: 2rem;
border-radius: 20px;
box-shadow: var(--shadow-lg);
border: 2px solid rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .stats-container {
background: rgba(30, 41, 59, 0.9);
border-color: rgba(51, 65, 85, 0.6);
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 2.25rem;
font-weight: 800;
color: var(--primary-color);
line-height: 1;
margin-bottom: 0.375rem;
text-shadow: 0 2px 8px rgba(21, 180, 183, 0.3);
}
.stat-label {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-gray);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stat-divider {
width: 2px;
height: 40px;
background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}
/* ==================== RESPONSIVE ==================== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .right-section {
        display: none;
    }

    .left-section {
        flex: 1;
        width: 100%;
    }
}

/* Móviles en horizontal */
@media (max-width: 768px) {
    .left-section {
        padding: 1.5rem 1rem;
    }

    .login-box {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .logo-wrapper {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .logo {
        height: 75px;
    }

    .logo-container {
        margin-bottom: 2.5rem;
    }

    .header-content {
        margin-bottom: 2.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .title-line {
        width: 32px;
        margin: 0 0.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 1.75rem;
    }

    .input-wrapper input {
        padding: 1rem 1rem 1rem 3.25rem;
        font-size: 0.9375rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .checkbox-text {
        font-size: 0.875rem;
    }

    .forgot-link {
        font-size: 0.875rem;
    }

    .submit-btn {
        height: 58px;
        font-size: 1rem;
    }

    .theme-toggle {
        top: 1.25rem;
        right: 1.25rem;
        width: 54px;
        height: 54px;
    }

    .theme-icon {
        width: 24px;
        height: 24px;
    }
}

/* Móviles en vertical */
@media (max-width: 480px) {
    .left-section {
        padding: 1rem 0.75rem;
    }

    .login-box {
        padding: 0;
    }

    .logo-wrapper {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .logo {
        height: 65px;
    }

    .logo-container {
        margin-bottom: 2rem;
    }

    .header-content {
        margin-bottom: 2rem;
    }

    .title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .title-line {
        width: 24px;
        height: 2px;
        margin: 0 0.5rem;
    }

    .subtitle {
        font-size: 0.9375rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
    }

    .input-wrapper input {
        padding: 0.875rem 0.875rem 0.875rem 3rem;
        font-size: 0.875rem;
        border-radius: 12px;
    }

    .input-icon-wrapper {
        width: 45px;
    }

    .input-icon {
        width: 18px;
        height: 18px;
    }

    .toggle-password {
        right: 0.625rem;
        padding: 0.5rem;
    }

    .eye-icon {
        width: 18px;
        height: 18px;
    }

    .checkmark {
        height: 20px;
        width: 20px;
        margin-right: 0.625rem;
    }

    .check-icon {
        width: 12px;
        height: 12px;
    }

    .checkbox-text {
        font-size: 0.8125rem;
    }

    .forgot-link {
        font-size: 0.8125rem;
        padding: 0.25rem 0.5rem;
    }

    .submit-btn {
        height: 54px;
        font-size: 0.9375rem;
        border-radius: 12px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .divider {
        margin: 2rem 0;
    }

    .divider-text {
        font-size: 0.8125rem;
    }

    .footer-content {
        margin-top: 2rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .theme-icon {
        width: 22px;
        height: 22px;
    }

    .error-message {
        font-size: 0.8125rem;
        margin-top: 0.5rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .left-section {
        padding: 0.875rem 0.625rem;
    }

    .logo {
        height: 55px;
    }

    .logo-wrapper {
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }

    .header-content {
        margin-bottom: 1.75rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .title-line {
        width: 20px;
        margin: 0 0.375rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .input-wrapper input {
        padding: 0.75rem 0.75rem 0.75rem 2.75rem;
        font-size: 0.8125rem;
    }

    .input-icon-wrapper {
        width: 40px;
    }

    .input-icon {
        width: 16px;
        height: 16px;
    }

    .submit-btn {
        height: 50px;
        font-size: 0.875rem;
    }

    .theme-toggle {
        width: 46px;
        height: 46px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }

    .divider {
        margin: 1.5rem 0;
    }

    .footer-content {
        margin-top: 1.5rem;
    }
}

/* Mejoras táctiles para móviles */
@media (hover: none) and (pointer: coarse) {
    .input-wrapper input,
    .submit-btn,
    .theme-toggle,
    .toggle-password {
        min-height: 44px;
        touch-action: manipulation;
    }

    .checkbox-container,
    .forgot-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
}

/* Optimización de scroll en móviles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        overflow-x: hidden;
    }

    /* Desactivar partículas en móvil para mejor rendimiento */
    .particles {
        display: none;
    }
}