/**
 * Login Startup Style - YC 
 * Diseño elegante, minimalista y moderno
 * Campaña Dr. Oscar Hernández
 */

/* Reset & ienvenidoase */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.login-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: #1e293b;
    overflow-x: hidden;
}

/* Main Container - Split Layout */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* =========================================
   LEFT PANEL - HERO SECTION
   ========================================= */
.login-hero {
    flex: 1;
    background: linear-gradient(145deg, #0D0D0D 0%, #212529 40%, #540B0E 100%);  /* Black power → NYT dark → Burgundy */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #F0EBD8;  /* Cream classic */
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge i {
    font-size: 0.75rem;
}

/* Title */
.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-highlight {
    display: block;
    background: linear-gradient(90deg, #F0EBD8 0%, #D9C5B2 100%);  /* Cream classic → Beige warm */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(240, 235, 216, 0.85);  /* Cream classic */
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 460px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Features Grid */
.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.3) 0%, rgba(217, 197, 178, 0.2) 100%);  /* Gold subtle gradient */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1rem;
    color: #D9C5B2;  /* Beige warm */
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.feature-text span {
    font-size: 0.8rem;
    color: rgba(217, 197, 178, 0.8);  /* Beige warm */
}

/* Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(217, 197, 178, 0.8);  /* Beige warm */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease-out 0.5s backwards;
}

.hero-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.hero-brand {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.hero-copyright {
    font-size: 0.75rem;
    color: rgba(217, 197, 178, 0.6);  /* Beige warm */
}

/* Decorative Circles */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 11, 14, 0.15) 0%, transparent 70%);  /* Burgundy power */
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 20%;
    animation: float 18s ease-in-out infinite 2s;
}

/* =========================================
   RIGHT PANEL - LOGIN FORM
   ========================================= */
.login-form-panel {
    flex: 0 0 480px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.form-wrapper {
    width: 100%;
    max-width: 360px;
    animation: fadeIn 0.5s ease-out;
}

/* Moenvenidole Logo - Hidden on desktop */
.mobile-logo {
    display: none;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mobile-logo .logo-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #64748b;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    font-size: 0.8rem;
    color: #94a3b8;
}

.form-group input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.25s ease;
    width: 100%;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.form-group input:focus {
    outline: none;
    border-color: #540B0E;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #64748b;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #540B0E;
    cursor: pointer;
}

.forgot-link {
    color: #8B7355;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #6B0F12;  /* Burgundy dark */
    text-decoration: underline;
}

/* Submit Button */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #540B0E 0%, #6B0F12 100%);  /* Burgundy power gradient */
    color: #F0EBD8;  /* Cream classic */
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(84, 11, 14, 0.35);  /* Burgundy power */
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 11, 14, 0.45);  /* Burgundy power */
}

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

.btn-login i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #166534;
}

.security-badge i {
    color: #22c55e;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1100px) {
    .login-hero {
        padding: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .login-form-panel {
        flex: 0 0 420px;
    }
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-hero {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-footer {
        display: none;
    }
    
    .login-form-panel {
        flex: 1;
        padding: 2rem 1.5rem;
    }
    
    .mobile-logo {
        display: flex;
    }
    
    .form-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .login-hero {
        padding: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-stats {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .login-form-panel {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* =========================================
   MODAL DE RECUPERACIÓN DE CONTRASEÑA
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-recuperacion {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-recuperacion {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-header-recuperacion {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(240, 235, 216, 0.5) 0%, rgba(217, 197, 178, 0.5) 100%);  /* Cream → Beige warm */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-icon i {
    font-size: 1.75rem;
    color: #540B0E;  /* Burgundy power */
}

.modal-header-recuperacion h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.modal-header-recuperacion p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.form-recuperacion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-recuperacion .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-recuperacion .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-recuperacion .form-group label i {
    font-size: 0.8rem;
    color: #94a3b8;
}

.form-recuperacion .form-group input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.25s ease;
    width: 100%;
}

.form-recuperacion .form-group input:focus {
    outline: none;
    border-color: #540B0E;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(84, 11, 14, 0.1);  /* Burgundy power */
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-cancelar {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cancelar:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-recuperar {
    flex: 1.5;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    background: linear-gradient(135deg, #540B0E 0%, #6B0F12 100%);  /* Burgundy power gradient */
    color: #F0EBD8;  /* Cream classic */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(84, 11, 14, 0.35);  /* Burgundy power */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-recuperar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 11, 14, 0.45);  /* Burgundy power */
}

.btn-recuperar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-recuperar .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #94a3b8;
}

.modal-footer-info i {
    color: #10b981;
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1100;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #64748b;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast i:first-child {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast span {
    flex: 1;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}

.toast button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.toast button:hover {
    color: #64748b;
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
}

.toast-success i:first-child {
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error i:first-child {
    color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning i:first-child {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #8B7355;
}

.toast-info i:first-child {
    color: #8B7355;
}

/* =========================================
   RESPONSIVE MODAL
   ========================================= */
@media (max-width: 480px) {
    .modal-recuperacion {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .modal-icon {
        width: 56px;
        height: 56px;
    }
    
    .modal-icon i {
        font-size: 1.5rem;
    }
    
    .modal-header-recuperacion h3 {
        font-size: 1.25rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-cancelar,
    .btn-recuperar {
        flex: none;
        width: 100%;
    }
    
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* =========================================
   DARK MODE SUPPORT (optional)
   ========================================= */
@media (prefers-color-scheme: dark) {
    /* Can be enabled if needed */
}

