/* /login — standalone page: hero background (mesh + grid) and hero-style glass card. No header/footer. */
body.lg-body { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); overflow-x: hidden; }
.lg-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 88px 20px 48px; overflow: hidden; isolation: isolate; }
.lg-page .x-mesh, .lg-page .x-gridbg { position: absolute; inset: 0; }
.lg-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 4vw, 40px); }
.lg-back { color: var(--muted); font-size: .92rem; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; transition: color .2s; }
.lg-back:hover { color: #fff; text-decoration: none; }
.lg-card { width: 100%; max-width: 440px; padding: clamp(26px, 5vw, 40px); border-radius: 26px; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(111, 155, 255, .06); position: relative; animation: lg-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.lg-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #6f9bff, #a08bff, #ff9a5c, transparent); opacity: .9; }
@keyframes lg-in { from { opacity: 0; transform: translateY(28px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.lg-brand { display: inline-flex; margin-bottom: 22px; }
.lg-brand img { height: 32px; width: auto; display: block; }
.lg-card .x-badge { margin-bottom: 16px; }
.lg-card h1 { font-family: var(--display); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 10px; color: #fff; text-align: left; }
.lg-sub { margin: 0 0 22px; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.lg-err { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 122, 168, .45); background: rgba(255, 122, 168, .12); color: #ffd0de; font-weight: 600; font-size: .92rem; }
.lg-form { display: grid; gap: 8px; }
.lg-form label { font-size: .86rem; font-weight: 600; color: #d6e0f2; margin-top: 8px; }
.lg-form input { width: 100%; min-height: 50px; padding: 0 16px; font: inherit; font-size: 1rem; color: #fff; background: rgba(5, 9, 18, .55); border: 1px solid rgba(148, 163, 184, .3); border-radius: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-form input:focus { outline: none; border-color: #6f9bff; box-shadow: 0 0 0 4px rgba(111, 155, 255, .22); background: rgba(5, 9, 18, .75); }
.lg-send { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 56px; margin-top: 18px; padding: .6em 1.2em .6em 1.8em; border: 0; border-radius: 16px; font: inherit; font-size: 1.05rem; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #2f5fe6 0%, #5b45e8 55%, #7b43ea 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 20px 40px -16px rgba(55, 70, 230, .8); transition: transform .2s ease, box-shadow .25s ease; }
.lg-send::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s ease; }
.lg-send .send-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: transform .25s ease; }
.lg-send:hover { transform: translateY(-2px); }
.lg-send:hover::before { transform: translateX(120%); }
.lg-send:hover .send-ico { transform: translateX(4px); }
.lg-send:active { transform: translateY(0); }
.lg-send:focus-visible { outline: 3px solid rgba(111, 155, 255, .6); outline-offset: 3px; }
.lg-help { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.lg-help a { color: #9fbcff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lg-help a:hover { color: #fff; }
@media (max-width: 560px) { .lg-page { padding: 76px 14px 32px; } .lg-top { padding: 14px 14px; } .lg-card { border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .lg-card { animation: none; } .lg-send, .lg-send::before, .lg-send .send-ico { transition: none; } .x-blob { animation: none; } }
.lg-brand { display: flex; }
.lg-card .x-badge { display: inline-flex; }
body.lp2 .lg-back { color: var(--muted); }
body.lp2 .lg-back:hover { color: #fff; }

/* layout: centred logo + title, icon inputs, show/hide password, divider above the help line */
.lg-card { text-align: center; max-width: 460px; }
.lg-brand { justify-content: center; margin-bottom: 20px; }
.lg-brand img { height: 48px; }
.lg-card h1 { text-align: center; font-size: clamp(1.6rem, 4.5vw, 2rem); letter-spacing: -.02em; margin-bottom: 8px; }
.lg-sub { margin-bottom: 26px; }
.lg-form { text-align: left; gap: 8px; }
.lg-form label { margin-top: 10px; }
.lg-field { position: relative; }
.lg-field .lg-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7f90ad; pointer-events: none; }
.lg-field input { padding-left: 46px; }
.lg-field input[type="password"], .lg-field input#password { padding-right: 48px; }
.lg-field:focus-within .lg-ico { color: #9fbcff; }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #7f90ad; cursor: pointer; transition: color .2s, background .2s; }
.lg-eye:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lg-eye:focus-visible { outline: 3px solid rgba(111, 155, 255, .6); outline-offset: 1px; }
.lg-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(148, 163, 184, .2); }
.lg-card { max-width: 520px; }
.lg-sub { font-size: .92rem; white-space: nowrap; }
@media (max-width: 560px) { .lg-sub { font-size: .86rem; white-space: normal; } }
