/* Estilos específicos para Login Split Design - DARK THEME */

/* Variables del tema dark */
:root {
    --dark-bg-primary: #0f0f23;
    --dark-bg-secondary: #1a1a3a;
    --dark-bg-tertiary: #252547;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #b8b8d6;
    --dark-text-muted: #8e8eb8;
    --dark-border: #2d2d52;
    --dark-hover: #2a2a4a;
    --brand-blue: #009fe3;
    --brand-pink: #e6007e;
    --brand-yellow: #ffed00;
}

/* Layout principal */
.login-split-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Partículas de fondo animadas */
.login-split-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 159, 227, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 0, 126, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 237, 0, 0.05) 0%, transparent 50%);
    animation: particlesFloat 20s ease-in-out infinite;
}

@keyframes particlesFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-split-card {
    width: 900px;
    max-width: 100%;
    min-height: 540px;
    background: var(--dark-bg-tertiary);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    box-shadow: 
        0 12px 40px 0 rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 159, 227, 0.1);
    display: flex;
    overflow: hidden;
    animation: fadeInUp 0.7s cubic-bezier(.39, .575, .565, 1) both;
    position: relative;
    z-index: 1;
}

/* Panel izquierdo - Formulario */
.login-split-left {
    flex: 1;
    background: var(--dark-bg-tertiary);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 400px;
    position: relative;
}

/* Panel derecho - Ilustración */
.login-split-right {
    flex: 1;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
    position: relative;
    min-width: 400px;
    overflow: hidden;
}

/* Logo */
.login-logo-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-eyedesign {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 159, 227, 0.4));
    transition: transform 0.3s ease;
}

.logo-eyedesign:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Título */
.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text-primary);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 159, 227, 0.2);
}

/* Formulario */
.login-form .form-label {
    font-weight: 500;
    color: var(--dark-text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login-form .input-group-text {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
    border-right: none;
    color: var(--brand-blue);
    border-radius: 8px 0 0 8px;
    transition: all 0.2s ease;
}

.login-form .form-control {
    background: var(--dark-bg-primary);
    border: 1px solid var(--dark-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--dark-text-primary);
    transition: all 0.2s ease;
}

.login-form .form-control::placeholder {
    color: var(--dark-text-muted);
}

.login-form .form-control:focus {
    background: var(--dark-bg-secondary);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2);
    color: var(--dark-text-primary);
}

.login-form .form-control:focus + .btn {
    border-color: var(--brand-blue);
}

.login-form .input-group:focus-within .input-group-text {
    border-color: var(--brand-blue);
    background: var(--dark-hover);
}

/* Botón toggle password */
.btn-outline-secondary {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--dark-text-secondary);
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: var(--dark-hover);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* Checkbox personalizado */
.form-check-input {
    background-color: var(--dark-bg-primary);
    border: 2px solid var(--dark-border);
}

.form-check-input:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 159, 227, 0.25);
}

.form-check-label {
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
}

/* Enlaces */
.forgot-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: var(--brand-pink);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(230, 0, 126, 0.4);
}

.signup-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.signup-link:hover {
    color: var(--brand-pink);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(230, 0, 126, 0.4);
}

/* Botón de login */
.login-btn {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 159, 227, 0.3),
        0 0 20px rgba(230, 0, 126, 0.2);
    position: relative;
    overflow: hidden;
}

.login-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 ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 159, 227, 0.4),
        0 0 30px rgba(230, 0, 126, 0.3);
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-blue) 100%);
    color: white;
}

/* Footer del login */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer p {
    color: var(--dark-text-muted);
    font-size: 0.9rem;
}

.login-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Ilustración del panel derecho - DARK ENHANCED */
.login-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
}

/* Efecto de partículas en la ilustración */
.login-illustration::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.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 237, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 80px 80px;
    animation: sparkle 15s linear infinite;
}

@keyframes sparkle {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, -100% -100%, 50% 50%; }
}

/* Elementos flotantes mejorados */
.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.moon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 0, 0.7));
    border-radius: 50% 50% 50% 0;
    top: 15%;
    right: 15%;
    transform: rotate(-45deg);
    animation-delay: -2s;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        inset -5px -5px 10px rgba(255, 237, 0, 0.3);
}

.cloud {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 25px;
    animation-delay: -1s;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cloud::before {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 80px;
    height: 25px;
    top: 20%;
    left: 20%;
}

.cloud-1::before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 10px;
}

.cloud-2 {
    width: 60px;
    height: 20px;
    top: 30%;
    right: 25%;
}

.cloud-2::before {
    width: 25px;
    height: 25px;
    top: -12px;
    left: 15px;
}

.star {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 237, 0, 0.8) 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(255, 237, 0, 0.5);
}

.star::before,
.star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translate(-50%, -50%);
}

.star::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.star-1 {
    top: 25%;
    left: 15%;
    animation-delay: -3s;
}

.star-2 {
    top: 35%;
    left: 80%;
    animation-delay: -1.5s;
}

.star-3 {
    top: 45%;
    left: 25%;
    animation-delay: -4s;
}

.star-4 {
    top: 55%;
    right: 20%;
    animation-delay: -2.5s;
}

.star-5 {
    top: 15%;
    left: 70%;
    animation-delay: -5s;
}

/* Círculos decorativos mejorados */
.decorative-circles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 20px 20px;
}

.circle {
    border-radius: 50%;
    opacity: 0.8;
    animation: bounce 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.circle-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 237, 0, 0.3));
    animation-delay: -1s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(0, 159, 227, 0.2));
    animation-delay: -2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(230, 0, 126, 0.2), rgba(255, 255, 255, 0.2));
    animation-delay: -3s;
}

.circle-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 237, 0, 0.4), rgba(255, 255, 255, 0.3));
    animation-delay: -0.5s;
}

/* Animaciones */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Responsive - Dark Theme Enhanced */
@media (max-width: 992px) {
    .login-split-card {
        flex-direction: column;
        max-height: none;
        border-radius: 16px;
    }
    
    .login-split-left,
    .login-split-right {
        min-width: 100%;
        flex: none;
    }
    
    .login-split-left {
        padding: 40px 30px;
        order: 2;
        border-radius: 0 0 16px 16px;
    }
    
    .login-split-right {
        min-height: 200px;
        order: 1;
        border-radius: 16px 16px 0 0;
    }
    
    .login-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .decorative-circles {
        height: 50%;
    }
    
    .floating-element {
        transform: scale(0.8);
    }
}

@media (max-width: 576px) {
    .login-split-bg {
        padding: 10px;
    }
    
    .login-split-card {
        border-radius: 12px;
        box-shadow: 
            0 8px 25px 0 rgba(0, 0, 0, 0.4),
            0 0 40px rgba(0, 159, 227, 0.15);
    }
    
    .login-split-left {
        padding: 30px 20px;
        border-radius: 0 0 12px 12px;
    }
    
    .login-split-right {
        border-radius: 12px 12px 0 0;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .logo-eyedesign {
        width: 60px;
    }
    
    .decorative-circles {
        height: 40%;
        padding: 0 10px 15px;
    }
    
    .circle-1 {
        width: 80px;
        height: 80px;
    }
    
    .circle-2 {
        width: 60px;
        height: 60px;
    }
    
    .circle-3 {
        width: 70px;
        height: 70px;
    }
    
    .circle-4 {
        width: 50px;
        height: 50px;
    }
    
    .floating-element {
        transform: scale(0.6);
    }
    
    .moon {
        width: 35px;
        height: 35px;
    }
    
    .cloud-1 {
        width: 60px;
        height: 20px;
    }
    
    .cloud-2 {
        width: 45px;
        height: 15px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .circle,
    .login-btn,
    .logo-eyedesign {
        animation: none;
    }
    
    .login-btn::before {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .login-split-card {
        border: 2px solid var(--brand-blue);
    }
    
    .form-control,
    .input-group-text,
    .btn-outline-secondary {
        border-width: 2px;
    }
    
    .form-control:focus {
        box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.3);
    }
}

/* Dark mode overrides for better visibility */
@media (prefers-color-scheme: dark) {
    .login-split-bg::before {
        opacity: 0.8;
    }
    
    .login-illustration::before {
        opacity: 0.6;
    }
    
    .floating-element {
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    }
}
