/* =========================================================
   Login moderno — Solar Express POS
   Panel de marca + tarjeta de formulario, reutiliza Bootstrap
   4 / Font Awesome / jQuery ya cargados en el proyecto.
   ========================================================= */

:root {
    --lp-navy-900: #0b2545;
    --lp-navy-700: #123a6b;
    --lp-blue-500: #2f6fbb;
    --lp-coral: #ff6c60;
    --lp-coral-dark: #f2503f;
    --lp-ink: #1f2937;
    --lp-slate: #6b7280;
    --lp-border: #e3e7ef;
    --lp-surface: #ffffff;
    --lp-bg: #f4f6fa;
}

html, body.lp-body {
    height: 100%;
}

body.lp-body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: var(--lp-bg);
    color: var(--lp-ink);
}

.lp-page {
    display: flex;
    min-height: 100vh;
}

/* ---------- Panel de marca ---------- */
.lp-brand {
    flex: 1 1 46%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lp-navy-900) 0%, var(--lp-navy-700) 55%, var(--lp-blue-500) 100%);
    color: #fff;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lp-brand__glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 108, 96, 0.35) 0%, rgba(255, 108, 96, 0) 70%);
    top: -160px;
    right: -160px;
    pointer-events: none;
}

.lp-brand__glow--secondary {
    top: auto;
    right: auto;
    bottom: -200px;
    left: -160px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
}

.lp-brand__content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.lp-brand__badge {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.lp-brand__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 16px;
    text-wrap: balance;
}

.lp-brand__tagline {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 36px;
}

.lp-brand__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-brand__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.lp-brand__features i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.lp-brand__footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Panel de formulario ---------- */
.lp-form-panel {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.lp-form-card {
    width: 100%;
    max-width: 400px;
    animation: lp-fade-up .5s ease both;
}

@keyframes lp-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.lp-logo {
    display: block;
    max-width: 220px;
    height: auto;
    margin: 0 auto 32px;
}

.lp-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--lp-ink);
    margin: 0 0 6px;
    text-align: center;
}

.lp-subtitle {
    font-size: 14px;
    color: var(--lp-slate);
    text-align: center;
    margin: 0 0 32px;
}

.lp-field {
    position: relative;
    margin-bottom: 18px;
}

.lp-field__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-slate);
    font-size: 15px;
    pointer-events: none;
}

input.lp-input.form-control {
    height: 52px;
    padding: 0 44px;
    border-radius: 12px;
    border: 1.5px solid var(--lp-border);
    font-size: 14px;
    color: var(--lp-ink);
    background: #fbfcfe;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input.lp-input.form-control:focus {
    border-color: var(--lp-blue-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 111, 187, 0.12);
    outline: none;
}

input.lp-input.form-control.is-invalid {
    border-color: #d64545;
    background: #fff;
}

input.lp-input.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}

.lp-field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--lp-slate);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

.lp-field__toggle:hover {
    background: var(--lp-bg);
    color: var(--lp-ink);
}

.lp-btn-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--lp-coral) 0%, var(--lp-coral-dark) 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(255, 108, 96, 0.55);
    transition: transform .15s ease, box-shadow .15s ease;
}

.lp-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(255, 108, 96, 0.6);
    color: #fff;
}

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

.lp-btn-submit i {
    font-size: 13px;
    transition: transform .15s ease;
}

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

.lp-response {
    min-height: 20px;
    margin-top: 14px;
    text-align: center;
}

.lp-msg {
    font-size: 13px;
    font-weight: 600;
}

.lp-msg--info {
    color: var(--lp-blue-500);
}

.lp-msg--error {
    color: #d64545;
}

.lp-msg--success {
    color: #1f9d55;
}

.lp-loader {
    width: 28px;
    height: 28px;
}

.lp-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--lp-slate);
    background: #fbfcfe;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0 18px;
}

.lp-notice i {
    margin-top: 2px;
    color: var(--lp-blue-500);
}

.lp-terms {
    display: block;
    font-size: 12px;
    color: var(--lp-slate);
    line-height: 1.6;
    margin-bottom: 10px;
}

.lp-terms a {
    color: var(--lp-blue-500);
    font-weight: 600;
    text-decoration: none;
}

.lp-terms a:hover {
    text-decoration: underline;
}

.lp-links {
    text-align: center;
    margin-top: 18px;
}

.lp-links--stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lp-links a {
    font-size: 13px;
    color: var(--lp-blue-500);
    font-weight: 600;
    text-decoration: none;
}

.lp-links a:hover {
    text-decoration: underline;
}

/* ---------- Accesos rápidos (entornos de prueba) ---------- */
.lp-dev-access {
    margin-top: 32px;
    padding: 16px;
    border: 1.5px dashed var(--lp-border);
    border-radius: 12px;
    background: #fbfcfe;
}

.lp-dev-access__label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lp-slate);
    margin-bottom: 12px;
    text-align: center;
}

.lp-dev-access__group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.lp-dev-access__group:last-child {
    margin-bottom: 0;
}

.lp-dev-access__group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--lp-slate);
    width: 78px;
    flex: 0 0 78px;
}

button.lp-dev-btn.btn {
    flex: 1 1 auto;
    border: 1px solid var(--lp-border);
    background: #fff;
    color: var(--lp-ink);
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    transition: all .15s ease;
}

button.lp-dev-btn.btn:hover {
    border-color: var(--lp-blue-500);
    color: var(--lp-blue-500);
    background: #f3f8fd;
}

/* ---------- Accesibilidad y responsive ---------- */
.lp-page a:focus-visible,
.lp-page button:focus-visible,
.lp-page input:focus-visible {
    outline: 2px solid var(--lp-blue-500);
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .lp-brand {
        display: none;
    }

    .lp-form-panel {
        padding: 32px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-form-card {
        animation: none;
    }
}
