/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fondo con gradiente y patrón mejorado */
.login-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 20%, rgba(10, 40, 70, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 36, 39, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(184, 185, 187, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #0a2846 0%, #b8b9bb 50%, #ebe9dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(235, 233, 220, 0.2) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M40 40c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16zm0-4c6.627 0 12-5.373 12-12s-5.373-12-12-12-12 5.373-12 12 5.373 12 12 12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    animation: backgroundFloat 25s ease-in-out infinite;
}

.login-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 36, 39, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(10, 40, 70, 0.05) 50%, transparent 70%);
    animation: shimmer 15s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: translate(15px, -10px) rotate(1deg);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-10px, 15px) rotate(-1deg);
        opacity: 0.9;
    }
    75% { 
        transform: translate(10px, 5px) rotate(0.5deg);
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Container principal */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.1),
        0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    position: relative;
    z-index: 1;
}

/* Panel izquierdo - Más ancho */
.login-panel {
    flex: 1.4;
    background: 
        linear-gradient(135deg, rgba(10, 40, 70, 0.88) 0%, rgba(255, 36, 39, 0.85) 100%),
        url('../Documentos/01_Imagenes/Portada_01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
}

.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    backdrop-filter: blur(1px);
}

/* Sección de marca */
.brand-section {
    position: relative;
    z-index: 3;
    text-align: center;
    background: rgba(235, 233, 220, 0.15);
    padding: 30px 25px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.logo-wrapper {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo {
    width: 90px;
    height: auto;
    filter: none;
    opacity: 1;
    display: block;
}

.brand-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.4);
    color: #ebe9dc;
}

.brand-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #b8b9bb;
}

/* Showcase de características */
.features-showcase {
    position: relative;
    z-index: 3;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Panel del formulario */
.form-panel {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #ebe9dc 0%, #ffffff 100%);
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

/* Texto de bienvenida */
.welcome-text {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-text h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #0a2846;
    margin-bottom: 8px;
}

.welcome-text p {
    color: #b8b9bb;
    font-size: 1rem;
    font-weight: 500;
}

/* Formulario */
.login-form {
    width: 100%;
}

/* Input wrappers con efectos flotantes */
.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 16px 18px 16px;
    border: 2px solid #b8b9bb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
    color: #0a2846;
}

.input-wrapper input:focus {
    border-color: #0a2846;
    background: white;
    box-shadow: 0 0 0 3px rgba(10, 40, 70, 0.1);
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    transform: translateY(-28px) scale(0.85);
    color: #0a2846;
    font-weight: 500;
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #b8b9bb;
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 4px;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0a2846, #ff2427);
    transition: width 0.3s ease;
}

.input-wrapper input:focus ~ .input-border {
    width: 100%;
}

/* Botón de envío */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0a2846 0%, #ff2427 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 40, 70, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-bg {
    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.6s ease;
}

.submit-btn:hover .btn-bg {
    left: 100%;
}

/* Footer info */
.footer-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #b8b9bb;
}

.footer-info p {
    color: #b8b9bb;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Alertas */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border-color: #ff2427;
}

.alert-warning {
    background: linear-gradient(135deg, #fef5e7, #fbd38d);
    color: #d69e2e;
    border-color: #ed8936;
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4, #9ae6b4);
    color: #38a169;
    border-color: #2cccd3;
}

/* Responsive */
@media (max-width: 768px) {
    .login-background {
        padding: 10px;
    }
    
    .login-container {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
    }
    
    .login-panel {
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .features-showcase {
        display: none;
    }
    
    .form-panel {
        padding: 30px 20px;
    }
    
    .welcome-text h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .login-background {
        padding: 5px;
    }
    
    .login-container {
        border-radius: 15px;
    }
    
    .login-panel {
        padding: 25px 15px;
        min-height: 250px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .form-panel {
        padding: 25px 15px;
    }
    
    .input-wrapper input {
        padding: 15px 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Efectos de fondo animados */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(44, 204, 211, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(125, 86, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 36, 39, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Container principal ultra moderno */
.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* ==================== LADO IZQUIERDO - VISUAL IMPACTANTE ==================== */
.login-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    overflow: hidden;
}

/* Overlay con textura */
.login-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(10, 40, 70, 0.1) 25%, 
        transparent 25%, 
        transparent 75%, 
        rgba(10, 40, 70, 0.1) 75%
    );
    background-size: 40px 40px;
    animation: textureMove 30s linear infinite;
    pointer-events: none;
}

@keyframes textureMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Contenido visual profesional */
.visual-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 600px;
    animation: contentSlideIn 1s ease-out;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo profesional */
.logo-container {
    margin-bottom: 3rem;
    position: relative;
}

.logo-container img {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Títulos con efectos profesionales */
.visual-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #bde0f5 50%, #2cccd3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(189, 224, 245, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(44, 204, 211, 0.5));
    }
}

.visual-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Lista de características elegante */
.features-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li {
    padding: 1.2rem 0;
    position: relative;
    padding-left: 3rem;
    font-weight: 400;
    font-size: 1.1rem;
    opacity: 0.95;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-list li::after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 12px;
}

.features-list li:hover {
    opacity: 1;
    transform: translateX(10px);
    color: #bde0f5;
}

/* ==================== LADO DERECHO - FORMULARIO PREMIUM ==================== */
.login-form-container {
    flex: 0 0 480px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    box-shadow: var(--shadow-strong);
}

/* Borde degradado lateral */
.login-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 0 3px 3px 0;
}

/* Formulario principal */
.login-form {
    width: 100%;
    max-width: 400px;
    animation: formSlideIn 0.8s ease-out 0.3s both;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header del formulario */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle {
    color: #6b7280;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
}

/* Grupos de formulario mejorados */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition-fast);
}

/* Inputs premium */
.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-cyan);
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(44, 204, 211, 0.1),
        0 8px 25px rgba(44, 204, 211, 0.15);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    transition: var(--transition-fast);
}

.form-input:focus::placeholder {
    opacity: 0.6;
    transform: translateX(10px);
}

/* Botón de login premium */
.login-button {
    width: 100%;
    padding: 1.4rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.login-button::before {
    content: '';
    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.6s;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 36, 39, 0.4);
    background: linear-gradient(135deg, #ff2427 0%, #d64d82 50%, #7d56c6 100%);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(-1px);
}

/* Alertas premium */
.alert {
    border-radius: 16px;
    border: none;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    position: relative;
    backdrop-filter: blur(10px);
}

.alert-warning {
    background: rgba(255, 181, 0, 0.15);
    color: #92400e;
    border-left: 4px solid #fbbf24;
}

.alert-danger {
    background: rgba(255, 36, 39, 0.15);
    color: #dc2626;
    border-left: 4px solid #ff2427;
}

.alert-success {
    background: rgba(44, 204, 211, 0.15);
    color: #047857;
    border-left: 4px solid #2cccd3;
}

/* ==================== FOOTER ESPECTACULAR ==================== */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 40, 70, 0.95);
    backdrop-filter: blur(15px);
    color: white;
    padding: 1.5rem 0;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    font-size: 0.9rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    color: var(--secondary-light-blue);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-cyan);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-cyan);
    transform: translateY(-1px);
}

.footer-link:hover::after {
    width: 100%;
}

/* ==================== RESPONSIVE PROFESIONAL ==================== */
@media (max-width: 1024px) {
    .login-visual {
        flex: 1;
        padding: 2rem;
    }
    
    .login-form-container {
        flex: 0 0 420px;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-visual {
        flex: 0 0 50vh;
        padding: 2rem 1rem;
    }
    
    .visual-title {
        font-size: 2rem;
    }
    
    .features-list {
        display: none;
    }
    
    .login-form-container {
        flex: 1;
        padding: 2rem 1rem;
    }
    
    .login-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-visual {
        flex: 0 0 40vh;
    }
    
    .visual-title {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
    
    .form-input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .login-button {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* ==================== MICRO-INTERACCIONES ==================== */
.form-input:valid {
    border-color: #10b981;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Efecto de carga en botón */
.login-button.loading {
    pointer-events: none;
    background: #9ca3af;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenido visual */
.visual-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 500px;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 12px 24px rgba(44, 204, 211, 0.4));
    }
}

.visual-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, var(--secondary-light-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.visual-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--secondary-light-blue);
    opacity: 0.9;
}

.features-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.features-list li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2rem;
    font-weight: 400;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

.features-list li:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Lado derecho - Formulario */
.login-form-container {
    flex: 0 0 480px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.login-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-red), var(--secondary-cyan), var(--secondary-purple));
}

.login-form {
    width: 100%;
    max-width: 380px;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--secondary-gray-1);
    font-weight: 400;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--secondary-gray-4);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: var(--secondary-gray-4);
    color: var(--primary-blue);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-cyan);
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 204, 211, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--secondary-gray-1);
    font-weight: 400;
}

.login-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-pink));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 36, 39, 0.3);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

/* Alertas personalizadas */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-warning {
    background: rgba(255, 181, 0, 0.1);
    color: var(--secondary-orange);
    border-left: 4px solid var(--secondary-orange);
}

.alert-danger {
    background: rgba(255, 36, 39, 0.1);
    color: var(--primary-red);
    border-left: 4px solid var(--primary-red);
}

.alert-success {
    background: rgba(44, 204, 211, 0.1);
    color: var(--secondary-cyan);
    border-left: 4px solid var(--secondary-cyan);
}

/* Footer del login */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 40, 70, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
}

.login-footer-content {
    text-align: center;
    font-size: 0.85rem;
}

.login-footer-content a {
    color: var(--secondary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer-content a:hover {
    color: var(--secondary-light-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-visual {
        flex: 0 0 40vh;
        padding: 2rem 1rem;
    }
    
    .visual-title {
        font-size: 2rem;
    }
    
    .login-form-container {
        flex: 1;
        padding: 2rem 1rem;
    }
    
    .features-list {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-visual {
        flex: 0 0 30vh;
    }
    
    .visual-title {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
}
