/* FactOn POS - Estilos Estructurados de Login */
:root {
    --primary-navy: #0E3187;
    --primary-blue: #005BF9;
    --primary-celeste: #08BFFC;
    --primary-blue-hover: #01299D;
    --bg-body: #030B1C;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #030B1C;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(8, 191, 252, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 90% 15%, rgba(0, 91, 249, 0.38) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(14, 49, 135, 0.50) 0%, transparent 48%),
        radial-gradient(circle at 85% 80%, rgba(8, 191, 252, 0.28) 0%, transparent 55%),
        linear-gradient(135deg, #030b1c 0%, #06173a 50%, #020917 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    margin: 0;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -120px;
    left: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 191, 252, 0.30) 0%, rgba(0, 91, 249, 0.15) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(45px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -140px;
    right: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 91, 249, 0.35) 0%, rgba(8, 191, 252, 0.20) 55%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

/* ==========================================================================
   1. BASE & MONITORES GRANDES (> 1400px, Pantallas 24" y Desktop) - Más Grande
   ========================================================================== */
.login-card-wrapper {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 540px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 35px -5px rgba(0, 91, 249, 0.35), 0 0 15px rgba(8, 191, 252, 0.2);
    border: 1px solid rgba(8, 191, 252, 0.25);
    margin: auto;
}

/* Banner lateral con slider */
.login-info-side {
    flex: 1.15;
    position: relative;
    overflow: hidden;
    background: #06173a;
}

.login-slide-item {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.login-slide-item.active { 
    opacity: 1; 
    z-index: 5; 
}

.slider-dots-container {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot-btn {
    width: 8.5px;
    height: 8.5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-dot-btn.active {
    background: white;
    width: 22px;
    border-radius: 4px;
}

/* Formulario de Acceso Base / Monitores Grandes */
.login-form-side {
    flex: 0.85;
    padding: 42px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
}

.form-header {
    text-align: center;
    margin-bottom: 26px;
}

.form-logo {
    max-width: 230px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 18px;
}

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

.input-wrapper input {
    width: 100%;
    padding: 13.5px 16px 13.5px 44px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3.5px rgba(0, 91, 249, 0.16);
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row input[type="checkbox"] {
    accent-color: var(--primary-blue);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-row label {
    font-size: 13.5px;
}

.login-form-side a[onclick*="openRecoverModal"] {
    font-size: 13px;
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

.login-form-side a[onclick*="openRecoverModal"]:hover {
    color: var(--primary-celeste);
}

.btn-submit {
    width: 100%;
    padding: 13.5px;
    border-radius: 12px;
    border: none;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #005BF9 0%, #01299D 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 91, 249, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #08BFFC 0%, #005BF9 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(0, 91, 249, 0.45);
}

.btn-back-store {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-back-store:hover {
    text-decoration: underline;
    color: var(--primary-celeste);
}

.error-toast {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 16px;
}

.form-side-footer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 22px;
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(6, 19, 41, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 22px;
    width: 100%;
    max-width: 380px;
}

/* ==========================================================================
   2. VERSIÓN LAPTOP (1024px a 1399px) (-5% vertical)
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1399.98px) {
    .login-card-wrapper {
        max-width: 900px;
        min-height: 510px !important; /* Reducido 5% vertical */
        border-radius: 22px;
    }
    .login-form-side {
        padding: 45px 45px; /* Reducido 5% vertical */
    }
    .form-header {
        margin-bottom: 22px;
    }
    .form-logo {
        max-width: 205px;
    }
    .input-group {
        margin-bottom: 15px;
    }
    .input-wrapper input {
        padding: 12px 15px 12px 40px;
        font-size: 14px;
        border-radius: 11px;
    }
    .input-wrapper svg {
        left: 13px;
        width: 18px;
        height: 18px;
    }
    .checkbox-row label {
        font-size: 12.5px;
    }
    .login-form-side a[onclick*="openRecoverModal"] {
        font-size: 12px;
    }
    .btn-submit {
        padding: 12px;
        font-size: 14.5px;
        border-radius: 11px;
        margin-top: 4px;
    }
    .btn-back-store {
        margin-top: 15px;
        font-size: 13px;
    }
    .form-side-footer {
        margin-top: 18px;
        font-size: 11px;
    }
}

/* ==========================================================================
   3. VERSIÓN TABLET (768px a 1023px) (-5% vertical)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023.98px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
    .login-card-wrapper {
        max-width: 750px !important;
        min-height: 420px !important; /* Reducido 5% vertical */
        max-height: 460px !important; /* Reducido 5% vertical */
        border-radius: 14px;
        margin: auto;
    }
    .login-info-side {
        flex: 1;
    }
    .login-form-side {
        flex: 1;
        padding: 35px 30px; /* Reducido 5% vertical */
        justify-content: center;
    }
    .form-header {
        margin-bottom: 6px;
    }
    .form-logo {
        max-width: 195px !important;
        width: 82%;
        height: auto;
        margin: 12px auto;
        display: block;
    }
    .input-group {
        margin-bottom: 15px;
    }
    .input-wrapper input {
        padding: 12px 15px 12px 40px;
        font-size: 14px;
        border-radius: 11px;
    }
    .input-wrapper svg {
        left: 13px;
        width: 18px;
        height: 18px;
    }
    .checkbox-row label {
        font-size: 12.5px;
    }
    .login-form-side a[onclick*="openRecoverModal"] {
        font-size: 12px;
    }
    .btn-submit {
        padding: 12px;
        font-size: 14.5px;
        border-radius: 11px;
        margin-top: 4px;
    }
    .btn-back-store {
        margin-top: 15px;
        font-size: 13px;
    }
    .form-side-footer {
        margin-top: 18px;
        font-size: 11px;
    }
}

/* ==========================================================================
   4. VERSIÓN MÓVIL (< 768px) (REVERTIDO AL ESTADO ANTERIOR SOLICITADO)
   ========================================================================== */
@media (max-width: 767.98px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 14px;
        margin: 0;
    }
    .login-info-side { 
        display: none !important; 
    }
    .login-card-wrapper { 
	    max-width: 650px !important;
        min-height: 420px !important;
        max-height: 460px !important;
        width: 100%;
        max-width: 325px !important;
        min-height: 480px;
        border-radius: 22px;
        box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
        margin: auto;
        display: flex;
        flex-direction: column;
    }
    .login-form-side {
        flex: 1 !important;
        padding: 38px 22px 30px 22px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .form-header {
        margin-bottom: 22px;
        text-align: center;
    }
    .form-logo {
        max-width: 195px !important;
        width: 82%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    .input-group {
        margin-bottom: 16px;
    }
    .input-wrapper input {
        padding: 13px 14px 13px 42px;
        font-size: 15px;
        border-radius: 12px;
    }
    .input-wrapper svg {
        left: 13px;
        width: 20px;
        height: 20px;
    }
    .checkbox-row label {
        font-size: 13.5px !important;
    }
    .login-form-side a[onclick*="openRecoverModal"] {
        font-size: 13px !important;
    }
    .btn-submit {
        padding: 13.5px;
        font-size: 15.5px;
        font-weight: 700;
        border-radius: 12px;
        margin-top: 6px;
    }
    .btn-back-store {
        margin-top: 16px;
        font-size: 14px;
        font-weight: 700;
    }
    .form-side-footer {
        margin-top: 20px;
        font-size: 11.5px;
    }
}
