/* =====================================================
   ESTILOS MODERNOS DEL LOGIN - PROMTADX
===================================================== */

:root {
    --primary-cyan: #38bdf8;
    --primary-cyan-hover: #0ea5e9;
    --primary-gradient: linear-gradient(135deg, #4dd5eb 0%, #38bdf8 50%, #0284c7 100%);
    --button-gradient: linear-gradient(135deg, #4ed6ec 0%, #34c4dc 100%);
    --button-gradient-hover: linear-gradient(135deg, #38c8df 0%, #20b0c8 100%);
    
    --bg-left: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-focus: #38bdf8;
    --input-bg: #f1f5f9;
    --input-focus-bg: #ffffff;
    
    --error-bg: #fef2f2;
    --error-text: #ef4444;
    --error-border: #fecaca;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 35px -10px rgba(56, 189, 248, 0.3);
    --shadow-input: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--bg-left);
    display: flex;
    align-items: stretch;
    overflow-x: hidden;
}

/* =====================================================
   ESTRUCTURA PRINCIPAL (SPLIT SCREEN)
===================================================== */

.login-wrapper {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* -----------------------------------------------------
   COLUMNA IZQUIERDA: FORMULARIO
----------------------------------------------------- */

.login-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    background-color: var(--bg-left);
    position: relative;
    z-index: 10;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Encabezado del Formulario */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-mobile-brand {
    display: none;
    margin-bottom: 16px;
}

.login-mobile-brand img {
    height: 48px;
    width: auto;
}

.login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Formulario */
.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-label i {
    font-size: 16px;
    color: var(--primary-cyan-hover);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background-color: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s ease;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--border-focus);
    box-shadow: var(--shadow-input);
}

/* Botón toggle password */
.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, transform 0.15s;
}

.password-toggle-btn:hover {
    color: var(--primary-cyan-hover);
    transform: scale(1.08);
}

/* Opciones extras: Recordarme */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13.5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-cyan-hover);
    cursor: pointer;
    border-radius: 4px;
}

/* Botón de Ingreso */
.btn-submit {
    width: 100%;
    height: 52px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--button-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-submit i {
    font-size: 20px;
    transition: transform 0.25s ease;
}

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

/* Estado de carga */
.btn-submit.loading {
    opacity: 0.85;
    pointer-events: none;
    cursor: wait;
}

.btn-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .spinner {
    display: inline-block;
}

.btn-submit.loading i {
    display: none;
}

/* Alerta de Error */
.alert-error {
    display: none;
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
    animation: shake 0.4s ease-in-out;
}

.alert-error i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Links del Footer */
.login-footer-links {
    margin-top: 26px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.login-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.login-link:hover {
    color: var(--primary-cyan-hover);
    text-decoration: underline;
}

.link-separator {
    color: #cbd5e1;
}

/* -----------------------------------------------------
   COLUMNA DERECHA: BRANDING PROMTADX
----------------------------------------------------- */

.login-right-panel {
    flex: 1;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Elementos decorativos de fondo */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.25);
    top: -80px;
    right: -80px;
}

.bg-shape-2 {
    width: 450px;
    height: 450px;
    background: rgba(14, 165, 233, 0.4);
    bottom: -100px;
    left: -100px;
}

.bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

/* Contenido de marca */
.brand-showcase {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-wrapper {
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px;
}

.brand-logo-svg,
.brand-logo-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-svg:hover,
.brand-logo-img:hover {
    transform: scale(1.035);
}

.brand-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-description {
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    max-width: 420px;
}

/* Tarjetas de características */
.feature-pills {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 14.5px;
    color: #ffffff;
    font-weight: 600;
}

.feature-text span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
}

.brand-footer {
    position: absolute;
    bottom: 24px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

/* =====================================================
   ANIMACIONES
===================================================== */

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* =====================================================
   RESPONSIVIDAD
===================================================== */

@media (max-width: 960px) {
    .login-right-panel {
        display: none;
    }
    
    .login-mobile-brand {
        display: block;
    }
    
    .login-left-panel {
        padding: 24px 16px;
    }
    
    .login-card {
        padding: 36px 24px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}

/* =====================================================
   ESTILOS PREMIUM CON COLORES OFICIALES DEL LOGIN
===================================================== */
.promtadx-swal-popup {
    border-radius: 24px !important;
    padding: 36px 30px !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.22), 0 0 0 1px rgba(56, 189, 248, 0.15) !important;
    background: #ffffff !important;
}

.promtadx-swal-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(2, 132, 199, 0.18) 100%);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

.promtadx-swal-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
}

.promtadx-swal-text {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 22px !important;
}

.promtadx-swal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    height: 48px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.promtadx-swal-input-wrapper:focus-within {
    border-color: #38bdf8;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.promtadx-swal-input-wrapper i {
    color: #38bdf8;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.promtadx-swal-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #0f172a !important;
    outline: none !important;
    font-family: inherit !important;
}

.promtadx-swal-popup .swal2-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 24px !important;
    width: 100% !important;
}

.promtadx-swal-btn-primary {
    background: linear-gradient(135deg, #4ed6ec 0%, #34c4dc 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.promtadx-swal-btn-primary:hover {
    background: linear-gradient(135deg, #38c8df 0%, #20b0c8 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.45) !important;
}

.promtadx-swal-btn-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.promtadx-swal-btn-secondary:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
