/* =================================================================
   Login page — premium split-screen layout
   Left  : brand panel with gradient + decorative blobs (desktop)
   Right : clean form card (all breakpoints)
   ================================================================= */

/* ── Page shell ───────────────────────────────────────────── */
.lp-page {
    display: flex;
    min-height: 100vh;
}

/* ── Left: brand panel ────────────────────────────────────── */
.lp-side {
    flex: 0 0 42%;
    position: relative;
    background: linear-gradient(140deg, var(--brand) 0%, var(--brand-600) 55%, var(--brand-700) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem 4rem 3.5rem;
    overflow: hidden;
}

/* Decorative blobs */
.lp-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lp-blob-a {
    width: 440px;
    height: 440px;
    background: rgba(255, 255, 255, .07);
    top: -150px;
    right: -160px;
}

.lp-blob-b {
    width: 290px;
    height: 290px;
    background: rgba(255, 255, 255, .05);
    bottom: -90px;
    left: -110px;
}

.lp-blob-c {
    width: 170px;
    height: 170px;
    background: rgba(255, 255, 255, .055);
    bottom: 130px;
    right: 18px;
}

.lp-side-inner {
    position: relative;
    z-index: 1;
    max-width: 360px;
    width: 100%;
}

/* Brand row */
.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 3rem;
    transition: opacity .2s;
}

.lp-logo:hover { opacity: .82; color: #fff; }

.lp-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    /* White chip so a brand-coloured / transparent logo stays visible
       against the purple gradient panel. */
    background: #fff;
    padding: 7px 11px;
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}

.lp-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.lp-logo-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Pitch copy */
.lp-pitch {
    margin-bottom: 2.25rem;
}

.lp-pitch h2 {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.03em;
    margin-bottom: .65rem;
}

.lp-pitch p {
    color: rgba(255, 255, 255, .7);
    font-size: .93rem;
    line-height: 1.65;
    margin: 0;
}

/* Feature bullet list */
.lp-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.lp-features li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}

.lp-feat-ico {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .14);
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
}

.lp-features li > div {
    display: flex;
    flex-direction: column;
    padding-top: .18rem;
}

.lp-features li strong {
    display: block;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .12rem;
}

.lp-features li span {
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
    line-height: 1.45;
}

/* ── Right: form panel ────────────────────────────────────── */
.lp-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bg);
}

.lp-card {
    width: 100%;
    max-width: 400px;
}

/* Mobile-only logo (hidden on desktop) */
.lp-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--ink);
    margin-bottom: 2rem;
    transition: opacity .2s;
}

.lp-mobile-logo:hover { opacity: .78; color: var(--ink); }

.lp-mobile-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.lp-mobile-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #fff;
    flex-shrink: 0;
}

.lp-mobile-logo-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -.01em;
}

/* Card header */
.lp-head {
    margin-bottom: 1.75rem;
}

.lp-secure-badge {
    display: inline-flex;
    align-items: center;
    background: var(--brand-50);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 600;
    padding: .28rem .75rem;
    border-radius: 999px;
    margin-bottom: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lp-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: .35rem;
}

.lp-sub {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
}

/* Input field wrapper with leading icon */
.lp-field {
    position: relative;
}

.lp-field-ico {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .9rem;
    pointer-events: none;
    z-index: 2;
    transition: color .18s;
}

.lp-field:focus-within .lp-field-ico {
    color: var(--brand);
}

.lp-input {
    padding-left: 2.55rem !important;
    padding-right: 2.75rem !important;
    height: 46px;
    border-radius: 12px !important;
    font-size: .9rem !important;
    transition: border-color .18s, box-shadow .18s;
}

/* Eye toggle button */
.lp-eye-btn {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: .3rem .45rem;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: color .15s, background .15s;
    z-index: 2;
}

.lp-eye-btn:hover {
    color: var(--brand);
    background: var(--brand-50);
}

/* Forgot password link */
.lp-forgot {
    font-size: .82rem;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
    transition: color .15s;
}

.lp-forgot:hover {
    color: var(--brand-600);
    text-decoration: underline;
}

/* Submit button */
.lp-submit-btn {
    height: 48px;
    font-size: .95rem;
    border-radius: 13px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .01em;
    transition: background .22s, transform .18s, box-shadow .22s;
}

.lp-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(var(--brand-rgb), .36);
}

/* Register hint */
.lp-register-hint {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: .875rem;
    color: var(--muted);
}

.lp-register-hint a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.lp-register-hint a:hover {
    color: var(--brand-600);
    text-decoration: underline;
}

/* ── Dark mode ────────────────────────────────────────────── */
[data-theme="dark"] .lp-side {
    background: linear-gradient(140deg, var(--brand-600) 0%, var(--brand-700) 100%);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .lp-side { flex: 0 0 40%; padding: 3rem 2.5rem; }
}

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

    .lp-mobile-logo { display: flex; }

    .lp-main { padding: 5rem 1.5rem 3rem; }
}

@media (max-width: 480px) {
    .lp-main { padding: 5rem 1.25rem 2.5rem; }
    .lp-card { max-width: 100%; }
}

/* ── Demo credentials ─────────────────────────────────────── */
.lp-demo {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px dashed var(--line);
}

.lp-demo-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .7rem;
    flex-wrap: wrap;
}

.lp-demo-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.lp-demo-title i { color: var(--brand); }

.lp-demo-hint {
    font-size: .72rem;
    color: var(--muted);
}

.lp-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .55rem;
}

.lp-demo-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .6rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
}

.lp-demo-item:hover {
    border-color: var(--brand);
    background: var(--brand-50);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--brand-rgb), .16);
}

.lp-demo-ico {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: .95rem;
}

.lp-demo-item:hover .lp-demo-ico {
    background: var(--brand);
    color: #fff;
}

.lp-demo-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.lp-demo-role {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
}

.lp-demo-email {
    font-size: .68rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-demo-go {
    margin-left: auto;
    font-size: .9rem;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .16s, transform .16s, color .16s;
}

.lp-demo-item:hover .lp-demo-go {
    opacity: 1;
    transform: translateX(0);
    color: var(--brand);
}

@media (max-width: 480px) {
    .lp-demo-grid { grid-template-columns: 1fr; }
}
