:root {
  color-scheme: dark;
  --bg: #0d0b11;
  --card: rgba(23, 20, 27, .88);
  --border: rgba(255,255,255,.13);
  --text: #fff;
  --secondary: #b9b3be;
  --tertiary: #8d8794;
  --pink: #ff6eb4;
  --pink-strong: #ff4fa3;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body.lightmoon-login {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(8,8,12,.08),rgba(8,8,12,.08)),
    url("images/login-night-clean.webp") center / cover fixed no-repeat,
    #0d0b11;
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a, button, input { font: inherit; }
.lm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.lm-login-shell {
  display: grid;
  grid-template-rows: clamp(112px, 15vh, 160px) minmax(0, 1fr) 62px;
  gap: 14px;
  width: min(calc(100% - 48px), 1140px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 0;
}
.lm-login-head { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.lm-login-head > a { color: var(--pink); font-family: "Great Vibes", cursive; font-size: 78px; line-height: .95; text-decoration: none; text-shadow: 0 0 24px rgba(255,79,163,.5); }
.lm-brand-rule { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--pink); }
.lm-brand-rule i { width: 92px; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,110,180,.55)); }
.lm-brand-rule i:last-child { background: linear-gradient(90deg,rgba(255,110,180,.55),transparent); }
.lm-brand-rule b { font-size: 11px; }
.lm-login-head p { display: flex; align-items: center; gap: 12px; margin: 7px 0 0; color: #f390bf; font-size: 12px; font-weight: 600; letter-spacing: .28em; }
.lm-login-head p span { width: 22px; height: 1px; background: var(--pink); }

.lm-login-layout { display: grid; grid-template-columns: 390px 1px 490px; gap: 60px; justify-content: center; min-height: 0; }
.lm-welcome { padding: clamp(105px, 17vh, 175px) 0 0 24px; }
.lm-welcome h1 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.lm-title-line { display: block; width: 44px; height: 3px; margin-top: 17px; border-radius: 4px; background: var(--pink); }
.lm-welcome-copy { width: 230px; margin: 25px 0 23px; color: var(--secondary); font-size: 14px; line-height: 1.68; }
.lm-benefits { display: grid; gap: 22px; }
.lm-benefits article { display: flex; align-items: center; gap: 15px; }
.lm-benefits article > span, .lm-benefit-link > span { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid rgba(255,110,180,.45); border-radius: 50%; color: #ff91c4; background: rgba(255,79,163,.1); box-shadow: 0 0 18px rgba(255,79,163,.16); }
.lm-benefits svg, .lm-user-icon svg, .lm-field svg, .lm-alert svg, .lm-login-footer svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lm-benefits strong { display: block; font-size: 14px; }
.lm-benefits p { width: 205px; margin: 5px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.55; }
.lm-benefit-link { position: relative; display: flex; align-items: center; gap: 15px; width: 290px; padding: 7px 30px 7px 0; border-radius: 13px; color: var(--text); text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.lm-benefit-link:hover { background: rgba(255,110,180,.06); transform: translateX(3px); }
.lm-benefit-arrow { position: absolute; right: 9px; width: 17px !important; height: 17px !important; color: var(--pink); }
.lm-login-separator { display: flex; justify-content: center; min-height: 0; padding: 20px 0; }
.lm-login-separator span { position: relative; display: block; width: 1px; height: 100%; background: linear-gradient(transparent,rgba(255,255,255,.15) 8%,rgba(255,255,255,.15) 92%,transparent); }
.lm-login-separator span::after { position: absolute; top: 47%; left: -4px; width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--pink); box-shadow: 0 0 12px rgba(255,79,163,.65); }

.lm-auth-card { align-self: start; width: 490px; min-height: 0; padding: 22px 32px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: linear-gradient(145deg,rgba(38,28,37,.85),rgba(15,15,19,.9)); box-shadow: 0 22px 55px rgba(0,0,0,.38); }
.lm-auth-card > header { display: flex; flex-direction: column; align-items: center; }
.lm-user-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(255,110,180,.6); border-radius: 50%; color: #ff91c4; background: rgba(255,79,163,.08); box-shadow: 0 0 20px rgba(255,79,163,.2); }
.lm-user-icon svg { width: 28px; height: 28px; }
.lm-auth-card h2 { margin: 17px 0 5px; font-size: 25px; font-weight: 600; }
.lm-auth-card > header p { margin: 0; color: var(--tertiary); font-size: 13px; }
.lm-alerts { margin-top: 20px; }
.lm-alert { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 11px 14px; border: 1px solid rgba(255,74,112,.35); border-radius: 9px; color: #ffd0da; background: rgba(116,32,48,.45); font-size: 13px; }
.lm-alert svg { flex: 0 0 auto; width: 18px; height: 18px; color: #ff5b7f; }
.lm-auth-card form { display: grid; gap: 17px; margin-top: 25px; }
.lm-field { display: grid; gap: 8px; color: #e4dfe4; font-size: 13px; }
.lm-field > span { position: relative; display: flex; align-items: center; }
.lm-field > span > svg:first-child { position: absolute; left: 14px; z-index: 1; width: 18px; height: 18px; color: #88818a; }
.lm-field input:not([type="checkbox"]) { width: 100%; height: 45px; padding: 0 45px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; outline: 0; color: #fff; background: rgba(10,10,13,.82); font-size: 14px; }
.lm-field input:focus { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(255,110,180,.2); }
.lm-field .lm-eye { position: absolute; right: 14px; left: auto; width: 18px; height: 18px; color: #88818a; }
.lm-login-options { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }
.lm-login-options label { display: flex; align-items: center; gap: 8px; color: #ddd6dd; font-size: 12px; }
.lm-login-options input { width: 15px; height: 15px; accent-color: var(--pink); }
.lm-login-options a { color: #ff9fc9; font-size: 12px; }
.lm-login-submit { height: 47px; border: 0; border-radius: 8px; color: #1a0d14; background: linear-gradient(100deg,#ff82ba,#f05aa0); box-shadow: 0 7px 19px rgba(255,79,163,.22); font-weight: 700; cursor: pointer; }
.lm-login-submit:hover { background: #ff8fc3; }
.lm-social-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 12px; color: var(--tertiary); font-size: 12px; }
.lm-social-divider span { flex: 1; height: 1px; background: rgba(255,255,255,.17); }
.lm-socials { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.lm-socials a { display: grid; place-items: center; height: 46px; border: 1px solid var(--border); border-radius: 8px; color: #fff; background: rgba(12,12,15,.55); cursor: pointer; }
.lm-socials a:hover { border-color: rgba(255,110,180,.45); }
.lm-socials svg { width: 20px; height: 20px; }
.lm-register { margin: 19px 0 0; color: var(--secondary); font-size: 12px; text-align: center; }
.lm-register a { margin-left: 4px; color: #ff9fc9; }

.lm-login-footer { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 100%; height: 62px; padding: 0 22px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(31,24,32,.9); box-shadow: 0 -12px 34px rgba(13,11,17,.55); }
.lm-login-footer::before { position: absolute; right: -1px; bottom: calc(100% + 1px); left: -1px; height: 34px; content: ""; background: linear-gradient(180deg,transparent,rgba(13,11,17,.88)); pointer-events: none; }
.lm-login-footer > div { display: flex; align-items: center; gap: 14px; }
.lm-login-footer > div > svg { width: 27px; height: 27px; color: var(--pink); }
.lm-login-footer strong, .lm-login-footer > div span { display: block; }
.lm-login-footer strong { margin-bottom: 5px; color: #ff9fc9; font-size: 12px; }
.lm-login-footer > div span { color: #d0c7cf; font-size: 10px; }
.lm-login-footer nav { justify-self: end; color: #bfb5bd; font-size: 10px; text-align: right; }
.lm-login-footer nav > span { display: block; margin-bottom: 5px; }
.lm-login-footer nav div { display: flex; justify-content: flex-end; gap: 8px; }
.lm-login-footer a { color: #f18ab8; text-decoration: none; }
.lm-login-footer i { color: #746b73; font-style: normal; }
.lm-login-footer .lm-vandal-signature { color: #ff9ac8; font-weight: 700; }

@media (max-height: 850px) and (min-width: 981px) {
  .lm-login-shell { grid-template-rows: 105px minmax(0, 1fr) 64px; gap: 9px; padding: 9px 0; }
  .lm-login-head > a { font-size: 61px; }
  .lm-brand-rule { margin-top: -2px; }
  .lm-login-head p { margin-top: 4px; font-size: 10px; }
  .lm-welcome { padding-top: clamp(70px, 12vh, 102px); }
  .lm-benefits { gap: 15px; }
  .lm-benefits article > span { width: 40px; height: 40px; flex-basis: 40px; }
  .lm-benefit-link > span { width: 40px; height: 40px; flex-basis: 40px; }
  .lm-auth-card { padding: 14px 28px 16px; border-radius: 20px; }
  .lm-user-icon { width: 48px; height: 48px; }
  .lm-user-icon svg { width: 23px; height: 23px; }
  .lm-auth-card h2 { margin: 10px 0 0; font-size: 22px; }
  .lm-alerts { margin-top: 11px; }
  .lm-alert { min-height: 42px; padding: 8px 12px; }
  .lm-auth-card form { gap: 10px; margin-top: 14px; }
  .lm-field { gap: 5px; }
  .lm-field input:not([type="checkbox"]) { height: 40px; }
  .lm-login-submit { height: 42px; }
  .lm-social-divider { margin: 10px 0 8px; }
  .lm-socials a { height: 40px; }
  .lm-register { margin-top: 11px; }
  .lm-login-footer { height: 64px; padding: 0 22px; border-radius: 17px; }
}

@media (max-height: 680px) and (min-width: 981px) {
  .lm-login-shell { grid-template-rows: 82px minmax(0, 1fr) 56px; gap: 6px; padding: 6px 0; }
  .lm-login-head > a { font-size: 50px; }
  .lm-brand-rule { display: none; }
  .lm-login-head p { margin-top: 2px; font-size: 9px; }
  .lm-welcome { padding-top: 48px; }
  .lm-welcome-copy { margin: 15px 0; }
  .lm-benefits { gap: 10px; }
  .lm-auth-card { padding-top: 10px; padding-bottom: 10px; }
  .lm-user-icon { width: 40px; height: 40px; }
  .lm-auth-card h2 { margin-top: 6px; font-size: 20px; }
  .lm-auth-card form { gap: 7px; margin-top: 9px; }
  .lm-field input:not([type="checkbox"]) { height: 36px; }
  .lm-login-submit, .lm-socials a { height: 36px; }
  .lm-social-divider { margin: 6px 0; }
  .lm-register { margin-top: 7px; }
  .lm-login-footer { height: 56px; }
  .lm-login-footer strong { margin-bottom: 2px; }
}

@media (max-width: 980px) {
  .lm-login-shell { grid-template-rows: 120px auto 70px; width: min(calc(100% - 30px), 680px); }
  .lm-login-layout { grid-template-columns: 1fr; min-height: auto; }
  .lm-welcome, .lm-login-separator { display: none; }
  .lm-auth-card { justify-self: center; }
}
@media (max-width: 560px) {
  body.lightmoon-login { background-position: 34% center; }
  .lm-login-shell { grid-template-rows: 112px auto auto; width: calc(100% - 20px); padding: 10px 0; }
  .lm-login-head > a { font-size: 57px; }
  .lm-login-head p { font-size: 9px; }
  .lm-auth-card { width: 100%; min-height: 0; padding: 22px 18px; border-radius: 19px; }
  .lm-login-footer { grid-template-columns: 1fr; height: auto; padding: 17px; text-align: center; }
  .lm-login-footer > div, .lm-login-footer nav { justify-self: center; }
  .lm-login-footer > img { display: none; }
  .lm-login-footer nav { margin-top: 12px; text-align: center; }
  .lm-login-footer nav div { justify-content: center; }
}
