/* ============================================
   NotiPagos - Estilos Login Moderno
   ============================================ */

/* Variables de tema */
:root {
    /* Tema oscuro (por defecto) */
    --login-bg: #0a0a0a;
    --login-card-bg: #0a0a0a;
    --login-text: #ffffff;
    --login-text-secondary: #a0a0a0;
    --login-input-bg: transparent;
    --login-input-border: #333333;
    --login-input-focus: #8b5cf6;
    --login-btn-bg: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --login-btn-hover: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    --login-link-color: #a855f7;
    --login-panel-bg: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
    --login-panel-text: #ffffff;
    --login-toggle-bg: #1a1a1a;
    --login-toggle-active: #8b5cf6;
}

/* Tema claro */
[data-theme="light"] {
    --login-bg: #f5f5f5;
    --login-card-bg: #ffffff;
    --login-text: #1a1a1a;
    --login-text-secondary: #666666;
    --login-input-bg: #f9f9f9;
    --login-input-border: #e0e0e0;
    --login-input-focus: #8b5cf6;
    --login-btn-bg: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --login-btn-hover: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    --login-link-color: #7c3aed;
    --login-panel-bg: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
    --login-panel-text: #ffffff;
    --login-toggle-bg: #e5e5e5;
    --login-toggle-active: #8b5cf6;
}

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Reset específico para login */
.login-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--login-bg);
    color: var(--login-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-page * {
    box-sizing: border-box;
}

/* Contenedor principal */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Panel izquierdo - Formulario */
.login-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--login-card-bg);
    position: relative;
    transition: background-color 0.3s ease;
}

/* Toggle de tema */
.theme-toggle-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.theme-toggle {
    display: flex;
    background-color: var(--login-toggle-bg);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
    transition: background-color 0.3s ease;
}

.theme-toggle button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--login-text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle button:hover {
    color: var(--login-text);
}

.theme-toggle button.active {
    background-color: var(--login-toggle-active);
    color: #ffffff;
}

.theme-toggle button svg {
    width: 18px;
    height: 18px;
}

/* Contenedor del formulario */
.login-form-container {
    width: 100%;
    max-width: 400px;
}

/* Encabezado */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 0.75rem 0;
    color: var(--login-text);
}

.login-header p {
    color: var(--login-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--login-text);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    background-color: var(--login-input-bg);
    border: 1px solid var(--login-input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--login-text);
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: var(--login-text-secondary);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--login-input-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.input-wrapper .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-wrapper .input-icon:hover {
    color: var(--login-text);
}

/* Opciones adicionales */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--login-text-secondary);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--login-input-focus);
    cursor: pointer;
}

.forgot-password {
    color: var(--login-link-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

/* Botón de login */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--login-btn-bg);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: var(--login-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer del formulario */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--login-input-border);
}

.login-footer p {
    color: var(--login-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.login-footer a {
    color: var(--login-link-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.login-footer a:hover {
    opacity: 0.8;
}

/* Panel derecho - Informativo */
.login-info-panel {
    flex: 1;
    background: var(--login-panel-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Logo */
.login-logo {
    margin-bottom: 2rem;
    z-index: 2;
}

.login-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Slider de contenido */
.info-slider {
    text-align: center;
    max-width: 450px;
    z-index: 2;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.slide h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--login-panel-text);
    margin: 0 0 1rem 0;
}

.slide p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Indicadores del slider */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    z-index: 2;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.slider-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Decoraciones del panel */
.info-panel-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.decoration-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.decoration-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.decoration-3 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 10%;
}

/* Alertas */
.login-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.login-alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.login-alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.login-alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-form-panel {
        padding: 2rem;
        min-height: auto;
    }
    
    .login-info-panel {
        padding: 3rem 2rem;
        min-height: 400px;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .login-form-panel {
        padding: 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .theme-toggle-container {
        top: 1rem;
        right: 1rem;
    }
    
    .theme-toggle button {
        width: 32px;
        height: 32px;
    }
    
    .slide h2 {
        font-size: 1.5rem;
    }
    
    .slide p {
        font-size: 0.9rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Animación de carga del botón */
.login-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Efecto glassmorphism para el logo */
.logo-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   Secciones de Auth (Login/Registro)
   ============================================ */
.auth-section {
    display: none;
    animation: slideIn 0.4s ease;
}

.auth-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Marcador de campo requerido */
.required-mark {
    color: #ef4444;
    font-weight: 600;
}

/* Toggle de contraseña */
.toggle-password {
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--login-input-focus) !important;
}

/* ============================================
   Info Box (Registro)
   ============================================ */
.info-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-left: 4px solid #8b5cf6;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box i {
    color: #8b5cf6;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box div {
    flex: 1;
}

.info-box strong {
    color: #a855f7;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.info-box p {
    color: var(--login-text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.info-box .highlight {
    color: #8b5cf6;
    font-weight: 600;
}

/* Tema claro - Info Box */
[data-theme="light"] .info-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.03) 100%);
}

[data-theme="light"] .info-box p {
    color: #666666;
}

/* ============================================
   Ajustes para formulario de registro
   ============================================ */
#registerSection .login-form {
    gap: 1.25rem;
}

#registerSection .form-field {
    gap: 0.4rem;
}

/* Scroll en móvil para registro */
@media (max-width: 1024px) {
    .login-form-panel {
        padding-top: 4rem;
        padding-bottom: 2rem;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .login-form-container {
        margin-top: auto;
        margin-bottom: auto;
    }
}

@media (max-width: 480px) {
    #registerSection .login-form {
        gap: 1rem;
    }
    
    .info-box {
        padding: 0.875rem;
    }
    
    .info-box i {
        font-size: 1.1rem;
    }
    
    .info-box strong {
        font-size: 0.85rem;
    }
    
    .info-box p {
        font-size: 0.8rem;
    }
}

/*logos login Jeiner*/
.slide-icon-img {
    width: 320px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.slide-icon-img2 {
    width: 320px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.slide-icon-img3 {
    width: 450px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

