/*
 * Learneva - Login page (redesign, Nov 2026).
 * Everything is scoped to .lva so no other page is affected.
 * Palette follows the theme: navy #185079, header blue #2563eb, text #1E293B, logo green accent.
 */
.lva {
    --lva-navy: #185079;
    --lva-navy-deep: #0d2a45;
    --lva-blue: #2563eb;
    --lva-green: #22c55e;
    --lva-ink: #1e293b;
    --lva-muted: #64748b;
    --lva-line: #e2e8f0;
    --lva-field: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 70%);
    font-family: 'Inter', sans-serif;
}

/* Soft background blobs */
.lva__bg { position: absolute; inset: 0; pointer-events: none; }
.lva__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
}
.lva__blob--1 { width: 420px; height: 420px; background: #c7d7fe; top: -140px; left: -120px; }
.lva__blob--2 { width: 360px; height: 360px; background: #bbf7d0; bottom: -160px; right: -100px; opacity: .35; }

/* Card */
.lva__card {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(15, 42, 80, .35), 0 8px 24px -12px rgba(15, 42, 80, .12);
    overflow: hidden;
}

/* ---------------- Brand panel ---------------- */
.lva__brand {
    position: relative;
    padding: 48px 44px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(34, 197, 94, .28), transparent 42%),
        linear-gradient(145deg, var(--lva-navy-deep) 0%, var(--lva-navy) 48%, var(--lva-blue) 100%);
    overflow: hidden;
}
.lva__brand-glow {
    position: absolute;
    width: 360px; height: 360px;
    right: -150px; bottom: -150px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .06);
}
.lva__brand-glow::after {
    content: "";
    position: absolute;
    width: 180px; height: 180px;
    left: -230px; top: -260px;
    border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, .05);
}
.lva__brand-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }

.lva__pill {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
    backdrop-filter: blur(4px);
}
.lva__pill i { color: #86efac; }

.lva__brand-title {
    margin: 28px 0 14px;
    font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
    color: #fff;
}
.lva__brand-title span {
    background: linear-gradient(90deg, #a5f3c4, #7dd3fc);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.lva__brand-text {
    margin: 0 0 30px;
    max-width: 400px;
    font-size: 15px; line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.lva__perks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 16px; }
.lva__perks li { display: flex; align-items: flex-start; gap: 14px; }
.lva__perk-ico {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 16px; color: #fff;
}
.lva__perks strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.lva__perks li > span:last-child { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .75); }

.lva__stats {
    margin-top: auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    overflow: hidden;
}
.lva__stats > div { padding: 14px 10px; text-align: center; }
.lva__stats > div + div { border-left: 1px solid rgba(255, 255, 255, .15); }
.lva__stats strong { display: block; font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; }
.lva__stats span { font-size: 12px; color: rgba(255, 255, 255, .72); letter-spacing: .03em; }

/* ---------------- Form panel ---------------- */
.lva__form-wrap { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }

.lva__form-head { margin-bottom: 28px; }
.lva__icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0e9ff, #dcfce7);
    color: var(--lva-navy); font-size: 19px;
    box-shadow: inset 0 0 0 1px rgba(24, 80, 121, .08);
}
.lva .lva__title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
    color: var(--lva-ink);
}
.lva__subtitle { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--lva-muted); }

.lva__field { margin-bottom: 18px; }
.lva__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lva__label {
    display: block;
    margin: 0 0 8px;
    font-size: 13.5px; font-weight: 600; color: var(--lva-ink);
}
.lva__input-wrap { position: relative; }
.lva__input-ico {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 15px; color: #94a3b8;
    pointer-events: none;
    transition: color .2s;
}
.lva .lva__input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1.5px solid var(--lva-line);
    border-radius: 12px;
    background: var(--lva-field);
    font-size: 14.5px; color: var(--lva-ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.lva .lva__input--pw { padding-right: 50px; }
.lva .lva__input::placeholder { color: #a0aec0; }
.lva .lva__input:hover { border-color: #cbd5e1; }
.lva .lva__input:focus {
    background: #fff;
    border-color: var(--lva-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.lva__input-wrap:focus-within .lva__input-ico { color: var(--lva-blue); }

.lva__eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px;
    background: transparent; color: #94a3b8; font-size: 15px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.lva__eye:hover { background: #eef2ff; color: var(--lva-blue); }
.lva__eye:focus-visible { outline: 2px solid var(--lva-blue); outline-offset: 1px; }

.lva__link { color: var(--lva-blue); font-weight: 600; text-decoration: none; }
.lva__link:hover { color: var(--lva-navy); text-decoration: underline; }
.lva__link--small { font-size: 13px; }

.lva__captcha { margin: 4px 0 8px; }

.lva__submit {
    position: relative;
    width: 100%; height: 52px; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 12px;
    background: linear-gradient(135deg, var(--lva-navy) 0%, var(--lva-blue) 100%);
    color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
    box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .65);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.lva__submit i { transition: transform .2s; }
.lva__submit:hover { filter: brightness(1.06); box-shadow: 0 16px 30px -10px rgba(37, 99, 235, .75); }
.lva__submit:hover i { transform: translateX(4px); }
.lva__submit:active { transform: translateY(1px); }
.lva__submit:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }

.lva__secure {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12.5px; color: var(--lva-muted);
}
.lva__secure i { color: var(--lva-green); margin-right: 4px; }

.lva__divider {
    display: flex; align-items: center; gap: 14px;
    margin: 24px 0 16px;
    font-size: 12.5px; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em;
}
.lva__divider::before, .lva__divider::after { content: ""; flex: 1; height: 1px; background: var(--lva-line); }
.lva__social { display: flex; justify-content: center; }

.lva__switch {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px dashed var(--lva-line);
    text-align: center;
    font-size: 14px; color: var(--lva-muted);
}
.lva__switch .lva__link { margin-left: 4px; }

/* Info section under the card (from auth_seo_info.php) */
.lva .seo-auth-info {
    max-width: 1080px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 10px 30px -18px rgba(15, 42, 80, .25);
}
.lva .seo-auth-info li::before { background: linear-gradient(135deg, var(--lva-navy), var(--lva-blue)); }
.lva .row > .col-lg-10 { flex: 0 0 100%; max-width: 100%; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .lva { padding: 40px 0 56px; }
    .lva__card { grid-template-columns: 1fr; max-width: 560px; }
    /* On tablets/phones the form comes first; the brand panel follows as a compact summary. */
    .lva__form-wrap { order: 1; }
    .lva__brand { order: 2; padding: 30px 28px; }
    .lva__brand-title { font-size: 28px; margin: 18px 0 10px; }
    .lva__brand-text { margin-bottom: 20px; }
    .lva__perks { display: none; }
    .lva__stats strong { font-size: 19px; }
    .lva__form-wrap { padding: 36px 32px; }
}
@media (max-width: 575px) {
    .lva { padding: 24px 0 40px; }
    .lva__card { border-radius: 18px; }
    .lva__brand { padding: 24px 20px; }
    .lva__brand-title { font-size: 24px; }
    .lva__brand-text { font-size: 14px; }
    .lva__form-wrap { padding: 28px 20px; }
    .lva .lva__title { font-size: 26px; }
    .lva .seo-auth-info { margin-top: 28px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .lva *, .lva *::before, .lva *::after { transition: none !important; }
}
