/* ==========================================================================
   PANTALLA DE LOGIN COMPLETA (COLOR AZUL #0000FF, FONDO 100% BLANCO)
   ========================================================================== */

:root {
    --smart-blue: #0000FF;
    --smart-blue-hover: #0000cc;
    --smart-text-dark: #1e252b;
    --smart-text-muted: #7e8790;
    --smart-input-bg: #eff2f5;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff !important;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.login-page-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    background: #ffffff !important;
    position: relative;
}

/* Toda la ventana ocupa el 100% de alto y ancho en fondo blanco */
.smart-fullscreen-wrapper {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    background: #ffffff;
    position: relative;
}

/* Franja azul izquierda eliminada */
.smart-card-left-strip {
    display: none;
}

/* Columna Izquierda: Imagen central */
.smart-character-col {
    flex: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: #ffffff;
    position: relative;
    user-select: none;
}

.smart-character-img {
    max-width: 95%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: none;
    transform: none !important;
    transition: none !important;
    pointer-events: none;
}

.smart-character-img:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Columna Derecha: Formulario centrado */
.smart-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    background: #ffffff;
    position: relative;
}

.smart-form-box {
    max-width: 400px;
    width: 100%;
}

/* Título 'Iniciar sesión' */
.smart-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--smart-text-dark);
    margin: 0 0 12px 0;
    text-align: center;
    letter-spacing: -0.03em;
}

/* Subtítulo */
.smart-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--smart-text-muted);
    text-align: center;
    margin: 0 auto 36px auto;
    max-width: 330px;
}

/* Formulario */
.smart-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.smart-input-group {
    position: relative;
    width: 100%;
}

.smart-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--smart-input-bg);
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: 16px 26px;
    font-size: 15px;
    color: var(--smart-text-dark);
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.smart-input::placeholder {
    color: #9aa5b1;
    font-weight: 400;
}

.smart-input:focus {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 18px rgba(0, 0, 255, 0.15);
}

.smart-pwd-toggle {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-pwd-toggle:hover {
    color: var(--smart-text-dark);
}

/* Botón principal azul ¡Empecemos! */
.smart-btn-submit {
    background: var(--smart-blue);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 16px 26px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 255, 0.28);
    transition: all 0.25s ease;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    letter-spacing: -0.01em;
}

.smart-btn-submit:hover {
    background: var(--smart-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 255, 0.38);
}

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

/* Botón Google con el mismo estilo y padding que el botón principal */
.smart-btn-google-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    color: #1e252b;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 16px 26px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    margin-top: 14px;
}

.smart-btn-google-full:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.smart-btn-google-full:active {
    transform: translateY(0);
}

/* Responsividad para móviles y tablets */
@media (max-width: 900px) {
    .smart-fullscreen-wrapper {
        flex-direction: column;
    }
    .smart-card-left-strip {
        width: 100vw;
        height: 14px;
        min-height: 14px;
    }
    .smart-character-col {
        justify-content: center;
        padding: 30px 20px 10px;
    }
    .smart-character-img {
        height: 250px;
    }
    .smart-form-col {
        padding: 20px 24px 50px;
    }
}

/* ==========================================================================
   SWEETALERT2 MODERNO Y ELEGANTE PARA EL LOGIN (DISEÑO PREMIUM FASTORDER)
   ========================================================================== */

div.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

div.swal2-popup.fastorder-swal-popup {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 36px 32px 32px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    width: 400px !important;
    max-width: 90vw !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

div.swal2-popup.fastorder-swal-popup .swal2-icon.swal2-error {
    border-color: #fee2e2 !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    width: 68px !important;
    height: 68px !important;
    margin: 0 auto 20px !important;
}

div.swal2-popup.fastorder-swal-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
    height: 3px !important;
}

div.swal2-popup.fastorder-swal-popup .swal2-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.02em !important;
}

div.swal2-popup.fastorder-swal-popup .swal2-html-container {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 0 26px !important;
}

div.swal2-popup.fastorder-swal-popup .swal2-actions {
    margin: 0 !important;
    width: 100% !important;
}

div.swal2-popup.fastorder-swal-popup button.swal2-confirm.fastorder-swal-btn {
    width: 100% !important;
    background: #0000ff !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 14px 24px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 255, 0.28) !important;
    transition: all 0.2s ease !important;
}

div.swal2-popup.fastorder-swal-popup button.swal2-confirm.fastorder-swal-btn:hover {
    background: #0000cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 255, 0.38) !important;
}

div.swal2-popup.fastorder-swal-popup button.swal2-confirm.fastorder-swal-btn:active {
    transform: translateY(0) !important;
}
