/**
 * LOGIN — VencePro · Gaseosas Lux S.A.S.
 * Redesign 2025 — Pixel-perfect, multiplataforma
 */

/* =================================================================
   VARIABLES
   ================================================================= */
:root {
    --lp: #0091FF;
    --lp-dark: #0076d1;
    --lp-light: #00b0f0;
    --lp-bg: #f8f9fa;
    --lp-surface: #ffffff;
    --lp-text: #191c1d;
    --lp-text-2: #41484d;
    --lp-text-3: #72787e;
    --lp-border: #d1d5db;
    --lp-input-bg: #f3f4f6;
    --lp-error: #ef4444;
    --lp-success: #22c55e;
    --lp-grad: linear-gradient(135deg, #0091FF 0%, #00b0f0 100%);
    --lp-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 145, 255, .10);
    --lp-r: 16px;
    --lp-r-lg: 24px;
    --lp-r-sm: 12px;
    --lp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lp-font-head: 'Manrope', 'Inter', sans-serif;
}

/* =================================================================
   RESET & BASE
   ================================================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    font-family: var(--lp-font);
    background: var(--lp-bg);
    color: var(--lp-text);
}

/* =================================================================
   PANEL IZQUIERDO — CARRUSEL
   ================================================================= */
.login-showcase {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background: #060D1A;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.showcase-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.showcase-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
}

.showcase-slide.active {
    opacity: 1;
}

.showcase-slide:nth-child(1) {
    background-color: #0a1f36;
}

.showcase-slide:nth-child(2) {
    background-color: #0c2a4a;
}

.showcase-slide:nth-child(3) {
    background-color: #0e3050;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(6, 13, 26, .25) 0%,
            rgba(6, 13, 26, .55) 60%,
            rgba(6, 13, 26, .85) 100%);
    z-index: 1;
}

/* ── Textos ── */
.showcase-texts {
    position: absolute;
    left: 3.5rem;
    right: 3.5rem;
    bottom: 4rem;
    z-index: 3;
}

.showcase-text {
    display: none;
    color: #fff;
    opacity: 0;
    transition: opacity .8s ease;
}

.showcase-text.active {
    display: block;
    opacity: 1;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 145, 255, .2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 145, 255, .3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #7dd3fc;
}

.slide-title {
    font-family: var(--lp-font-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    max-width: 420px;
    letter-spacing: -.5px;
}

.slide-description {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    max-width: 380px;
    color: rgba(255, 255, 255, .75);
    font-weight: 400;
}

/* ── Dots ── */
.showcase-dots {
    display: flex;
    gap: 8px;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    border: none;
}

.dot:hover {
    background: rgba(255, 255, 255, .55);
}

.dot.active {
    background: var(--lp);
    width: 32px;
    box-shadow: 0 0 12px rgba(0, 145, 255, .5);
}

/* =================================================================
   PANEL DERECHO — FORMULARIO
   ================================================================= */
.login-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: var(--lp-bg);
    position: relative;
    overflow: hidden;
}

.login-panel-right::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 145, 255, .04) 0%, transparent 70%);
    top: -5%;
    right: -5%;
    border-radius: 50%;
    pointer-events: none;
}

.login-panel-right::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 176, 240, .03) 0%, transparent 70%);
    bottom: -5%;
    left: 5%;
    border-radius: 50%;
    pointer-events: none;
}

/* =================================================================
   CARD
   ================================================================= */
.login-card {
    background: var(--lp-surface);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-shadow);
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, .04);
    animation: lp-fadeUp .5s ease-out;
}

@keyframes lp-fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   LOGO
   ================================================================= */
.login-card-logo {
    text-align: center;
    margin: 0 auto 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.login-card-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    transition: transform .3s ease;
}

.login-card-logo-img:hover {
    transform: scale(1.03);
}

/* =================================================================
   HEADER
   ================================================================= */
.login-header-title {
    font-family: var(--lp-font-head);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--lp-text);
    text-align: center;
    margin: 0 0 .25rem 0;
    letter-spacing: -.3px;
}

.login-header-subtitle {
    font-size: .9rem;
    color: var(--lp-text-3);
    text-align: center;
    margin: 0 0 2rem 0;
    font-weight: 400;
}

/* =================================================================
   FORMULARIO
   ================================================================= */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--lp-text-2);
    display: flex;
    align-items: center;
    gap: 3px;
}

.login-label-required {
    color: var(--lp-error);
    font-weight: 500;
}

.login-input-wrapper {
    position: relative;
}

.login-input {
    width: 100%;
    padding: .8125rem 1rem;
    font-size: .9375rem;
    font-family: var(--lp-font);
    border: 1.5px solid var(--lp-border);
    border-radius: var(--lp-r-sm);
    background: var(--lp-input-bg);
    color: var(--lp-text);
    transition: all .2s ease;
    box-sizing: border-box;
}

.login-input:hover {
    border-color: #9ca3af;
    background: #fff;
}

.login-input:focus {
    outline: none;
    border-color: var(--lp);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 145, 255, .12);
}

.login-input::placeholder {
    color: var(--lp-text-3);
}

.login-input-help {
    font-size: .75rem;
    color: var(--lp-text-3);
}

/* Password toggle */
.login-input--with-icon {
    padding-right: 3rem;
}

.login-password-toggle {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--lp-text-3);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
    border-radius: 8px;
}

.login-password-toggle:hover {
    color: var(--lp);
    background: rgba(0, 145, 255, .06);
}

.login-password-toggle ion-icon {
    font-size: 20px;
}

/* =================================================================
   OPCIONES
   ================================================================= */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--lp);
    cursor: pointer;
    border-radius: 4px;
}

.login-remember-text {
    font-size: .8125rem;
    color: var(--lp-text-2);
    user-select: none;
}

.login-forgot {
    font-size: .8125rem;
    color: var(--lp);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.login-forgot:hover {
    color: var(--lp-dark);
}

/* =================================================================
   BOTÓN SUBMIT
   ================================================================= */
.login-btn-submit {
    width: 100%;
    padding: .875rem;
    font-size: .9375rem;
    font-weight: 600;
    font-family: var(--lp-font);
    color: #fff;
    background: var(--lp-grad);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(0, 145, 255, .25);
    margin-top: .25rem;
    position: relative;
    overflow: hidden;
}

.login-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    transition: left .5s ease;
}

.login-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 145, 255, .35);
}

.login-btn-submit:hover::before {
    left: 100%;
}

.login-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 145, 255, .2);
}

.login-btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* =================================================================
   DIVIDER + BIOMETRICS
   ================================================================= */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    color: var(--lp-text-3);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lp-border);
}

.login-btn-biometric {
    width: 100%;
    padding: .8125rem;
    font-size: .9375rem;
    font-weight: 600;
    font-family: var(--lp-font);
    color: var(--lp);
    background: rgba(0, 145, 255, .06);
    border: 1.5px solid rgba(0, 145, 255, .2);
    border-radius: var(--lp-r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s ease;
}

.login-btn-biometric:hover {
    background: rgba(0, 145, 255, .1);
    border-color: rgba(0, 145, 255, .35);
}

.login-btn-biometric ion-icon {
    font-size: 20px;
}

/* =================================================================
   ALERTAS
   ================================================================= */
.login-alert {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .75rem 1rem;
    border-radius: var(--lp-r-sm);
    font-size: .875rem;
    animation: lp-alertSlide .3s ease-out;
}

@keyframes lp-alertSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-alert ion-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.login-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* =================================================================
   FOOTER
   ================================================================= */
.login-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-footer-text--small {
    font-size: .7rem;
    color: var(--lp-text-3);
    line-height: 1.55;
    margin: 0 0 .375rem 0;
}

.login-footer-link-small {
    color: var(--lp);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
    display: inline;
    margin-left: 2px;
}

.login-footer-link-small:hover {
    color: var(--lp-dark);
}

.login-footer-copyright {
    font-size: .7rem;
    color: var(--lp-text-3);
    margin: 0;
}

/* =================================================================
   LOADING STATE
   ================================================================= */
.login-btn-submit--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.login-btn-submit--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin .7s linear infinite;
}

@keyframes lp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =================================================================
   WHATSAPP MODAL
   ================================================================= */
.modal-overlay-whatsapp {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: lp-fadeIn .3s ease;
}

@keyframes lp-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-whatsapp-card {
    background: #fff;
    border-radius: 20px;
    max-width: 430px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    animation: lp-slideUp .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes lp-slideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-whatsapp-header {
    text-align: center;
    margin-bottom: 24px;
}

.whatsapp-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}

.whatsapp-icon-wrapper ion-icon {
    font-size: 36px;
    color: #fff;
}

.modal-whatsapp-header h2 {
    font-family: var(--lp-font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-text);
    margin: 0 0 6px;
}

.modal-whatsapp-header p {
    font-size: .875rem;
    color: var(--lp-text-3);
    margin: 0;
    line-height: 1.5;
}

.wa-form-group {
    margin-bottom: 18px;
}

.wa-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--lp-text-2);
    margin-bottom: 8px;
}

.wa-form-label ion-icon {
    font-size: 17px;
    color: var(--lp);
}

.wa-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--lp-border);
    border-radius: var(--lp-r-sm);
    font-size: 15px;
    font-family: var(--lp-font);
    transition: border-color .2s;
    outline: none;
    box-sizing: border-box;
    background: var(--lp-input-bg);
}

.wa-form-input:focus {
    border-color: var(--lp);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 145, 255, .1);
}

.wa-codigo-input {
    font-size: 26px !important;
    text-align: center;
    letter-spacing: 10px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    padding: 16px !important;
}

.wa-form-help {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    color: var(--lp-text-3);
    margin-top: 6px;
}

.wa-form-help ion-icon {
    font-size: 13px;
}

.wa-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--lp-r-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--lp-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
}

.wa-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.wa-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .25);
}

.wa-btn-whatsapp:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
}

.wa-btn-primary {
    background: var(--lp-grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 145, 255, .25);
}

.wa-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 145, 255, .35);
}

.wa-success-badge {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    padding: 12px 14px;
    border-radius: var(--lp-r-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: .8125rem;
    box-shadow: 0 3px 10px rgba(37, 211, 102, .25);
}

.wa-success-badge ion-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.wa-link-reenviar {
    color: var(--lp);
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .2s;
}

.wa-link-reenviar:hover {
    background: rgba(0, 145, 255, .06);
}

.wa-link-omitir {
    color: #9ca3af;
    font-size: .8125rem;
    text-decoration: none;
    transition: color .2s;
}

.wa-link-omitir:hover {
    color: #6b7280;
}

.wa-alert {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .8125rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-alert.wa-hidden {
    display: none;
}

.wa-alert.wa-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.wa-alert.wa-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.wa-modal-footer {
    text-align: center;
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

/* =================================================================
   RESPONSIVE — TABLET
   ================================================================= */
@media (max-width: 1024px) {
    .login-showcase {
        flex: 0 0 42%;
    }

    .showcase-texts {
        left: 2.5rem;
        right: 2.5rem;
        bottom: 3rem;
    }

    .slide-title {
        font-size: 2rem;
    }

    .login-card {
        padding: 2rem;
    }
}

/* =================================================================
   RESPONSIVE — MOBILE
   ================================================================= */
@media (max-width: 768px) {
    body:not(.recovery-page) {
        background: radial-gradient(circle at top right, #eef2ff 0%, #f8f9fa 100%) !important;
    }

    body:not(.recovery-page) .login-wrapper {
        display: none !important;
    }

    .login-mobile {
        display: flex !important;
    }
}

/* =================================================================
   RESPONSIVE — SMALL
   ================================================================= */
@media (max-width: 480px) {
    .login-panel-right {
        padding: 1.5rem 1rem 2.5rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
    }

    .login-card-logo-img {
        max-width: 200px;
        max-height: 64px;
    }

    .login-input {
        padding: .75rem .875rem;
    }

    .modal-whatsapp-card {
        padding: 1.5rem;
    }

    .wa-codigo-input {
        font-size: 22px !important;
        letter-spacing: 8px;
    }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */
@media (prefers-reduced-motion: reduce) {

    .login-card,
    .login-alert,
    .showcase-slide,
    .showcase-text,
    .modal-whatsapp-card,
    .modal-overlay-whatsapp {
        animation: none;
        transition: none;
    }

    .login-btn-submit::before {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .login-input {
        border-width: 2px;
    }

    .login-btn-submit {
        border: 2px solid #fff;
    }
}

/* =================================================================
   MOBILE LOGIN — VencePro STYLE (APK / PWA / Web Responsive)
   ================================================================= */

/* ── Toggle: ocultar por defecto, mostrar en contextos mobile ── */
.login-mobile {
    display: none;
}

/* APK / PWA (detectado por platform.js) */
.layout-mobile .login-mobile {
    display: flex !important;
}

body:not(.recovery-page).layout-mobile .login-wrapper {
    display: none !important;
}

/* ── Layout base ── */
.login-mobile {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at top right, #eef2ff 0%, #f8f9fa 100%);
    font-family: var(--lp-font);
    color: #191c1d;
}

.lm-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.lm-container {
    width: 100%;
    max-width: 448px;
}

/* ── Branding ── */
.lm-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.lm-logo-box {
    width: 120px;
    margin-bottom: 0.75rem;
}

.lm-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.lm-welcome {
    font-family: var(--lp-font-head);
    font-size: 1.125rem;
    font-weight: 600;
    color: #404753;
    margin: 0;
}

/* ── Card ── */
.lm-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0, 93, 167, 0.08);
}

/* ── Form ── */
.lm-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lm-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lm-label {
    font-family: var(--lp-font);
    font-size: 0.875rem;
    font-weight: 500;
    color: #404753;
    margin-left: 0.25rem;
}

.lm-input-wrap {
    position: relative;
}

.lm-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #707785;
    pointer-events: none;
    transition: color 0.2s;
}

.lm-input-wrap:focus-within .lm-input-icon {
    color: var(--lp);
}

.lm-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 0.9375rem;
    font-family: var(--lp-font);
    color: #191c1d;
    background: #f3f4f5;
    border: none;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.lm-input--pw {
    padding-right: 3rem;
}

.lm-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.2);
}

.lm-input::placeholder {
    color: #9ca3af;
}

/* ── Password toggle ── */
.lm-pw-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #707785;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.lm-pw-toggle:hover {
    color: var(--lp);
}

.lm-pw-toggle ion-icon {
    font-size: 20px;
}

.lm-forgot-row {
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.lm-forgot {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lp);
    text-decoration: none;
    transition: color 0.2s;
}

.lm-forgot:hover {
    color: var(--lp-dark);
}

/* ── Submit button ── */
.lm-submit-row {
    padding-top: 0.5rem;
}

.lm-btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: var(--lp-font-head);
    color: #fff;
    background: var(--lp-grad);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 145, 255, 0.25);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.lm-btn-submit:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 145, 255, 0.3);
    transform: scale(1.02);
}

.lm-btn-submit:active {
    transform: scale(0.95);
}

.lm-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lm-btn-submit--loading {
    color: transparent;
    pointer-events: none;
}

.lm-btn-submit--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
}

/* ── Alerts ── */
.lm-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    animation: lp-alertSlide 0.3s ease-out;
}

.lm-alert ion-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.lm-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.lm-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* ── Divider ── */
.lm-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0 1.25rem;
    color: #707785;
    font-size: 0.875rem;
    font-style: italic;
}

.lm-divider::before,
.lm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e3e4;
}

.lm-divider span {
    padding: 0 1rem;
    white-space: nowrap;
    background: #fff;
}

/* ── Biometric button ── */
.lm-btn-bio {
    width: 100%;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #f3f4f5;
    border: none;
    border-radius: 9999px;
    color: #404753;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--lp-font);
    cursor: pointer;
    transition: background 0.2s;
}

.lm-btn-bio:hover {
    background: #e7e8e9;
}

.lm-btn-bio ion-icon {
    font-size: 20px;
    color: var(--lp);
}

/* ── Footer ── */
.lm-footer {
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.lm-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.lm-footer-links a {
    font-size: 0.75rem;
    font-weight: 500;
    color: #707785;
    text-decoration: none;
    transition: color 0.2s;
}

.lm-footer-links a:hover {
    color: var(--lp);
}

.lm-copyright {
    font-size: 0.625rem;
    color: var(--lp-text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* ── Small screens ── */
@media (max-width: 480px) {
    .lm-main {
        padding: 1.5rem 1rem;
    }

    .lm-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }

    .lm-branding {
        margin-bottom: 1.5rem;
    }

    .lm-logo-box {
        width: 100px;
    }

    .lm-welcome {
        font-size: 1rem;
    }
}

/* ── Accessibility for mobile login ── */
@media (prefers-reduced-motion: reduce) {
    .lm-alert {
        animation: none;
    }
}

/* =================================================================
   RECOVERY PAGE — Mobile overrides (media query, no platform.js)
   ================================================================= */

@media (max-width: 768px) {
    .recovery-page {
        background: radial-gradient(circle at top right, #eef2ff 0%, #f8f9fa 100%) !important;
    }

    .recovery-page .login-wrapper {
        display: flex !important;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        background: radial-gradient(circle at top right, #eef2ff 0%, #f8f9fa 100%);
        font-family: var(--lp-font);
    }

    .recovery-page .login-panel-right {
        flex: 1 !important;
        max-width: 100% !important;
        padding: 2rem 1.5rem;
        background: transparent;
        overflow: visible;
    }

    .recovery-page .login-panel-right::before,
    .recovery-page .login-panel-right::after {
        display: none;
    }

    .recovery-page .login-card {
        max-width: 448px;
        width: 100%;
        background: #fff;
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 12px 32px rgba(0, 93, 167, 0.08);
        border: none;
        animation: none;
    }

    .recovery-page .login-card-logo {
        height: auto;
        margin-bottom: 0.75rem;
    }

    .recovery-page .login-card-logo-img {
        max-width: 200px;
        max-height: 64px;
    }

    .recovery-page .login-header-title {
        font-family: var(--lp-font-head);
        font-size: 1.125rem;
        font-weight: 700;
        color: #191c1d;
        margin-bottom: 0.25rem;
    }

    .recovery-page #recuDesc {
        font-size: 0.85rem !important;
        color: #404753 !important;
        margin: 0 0 1.5rem 0 !important;
    }

    .recovery-page .login-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #404753;
    }

    .recovery-page .login-input {
        padding: 1rem;
        font-size: 0.9375rem;
        background: #f3f4f5;
        border: none;
        border-radius: 12px;
    }

    .recovery-page .login-input:focus {
        background: #fff;
        box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.2);
        border: none;
    }

    .recovery-page .login-btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 0.9375rem;
        font-weight: 700;
        font-family: var(--lp-font-head);
        color: #fff;
        background: var(--lp-grad);
        border: none;
        border-radius: 9999px;
        box-shadow: 0 10px 15px -3px rgba(0, 145, 255, 0.25);
    }

    .recovery-page .login-btn-submit::before {
        display: none;
    }

    .recovery-page .login-btn-submit:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 145, 255, 0.3);
        transform: scale(1.02);
    }

    .recovery-page .login-btn-submit:active {
        transform: scale(0.95);
    }

    .recovery-page .login-alert--error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
        border-radius: 12px;
    }

    .recovery-page .login-input-help {
        font-size: 0.8rem;
        color: #707785;
    }

    .recovery-page .login-footer {
        text-align: center;
    }

    .recovery-page .login-forgot {
        color: var(--lp);
        font-weight: 500;
    }
}