:root {
  color-scheme: dark;
  --bg: #080913;
  --surface: rgba(16,18,30,.88);
  --line: rgba(255,255,255,.1);
  --text: #f5f6fb;
  --muted: #9da4ba;
  --primary: #5f6cf2;
  --primary-bright: #8c8fff;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text); background: radial-gradient(circle at 50% -20%,rgba(83,73,207,.18),transparent 34rem),var(--bg); font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom,black,transparent 72%); }
button,a { -webkit-tap-highlight-color: transparent; }

.login-glow { position: fixed; z-index: -2; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.login-glow-one { top: 20%; left: 8%; background: rgba(66,83,224,.13); }
.login-glow-two { right: 7%; bottom: 3%; background: rgba(131,70,215,.09); }

.login-header { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 40px),1240px); min-height: 76px; margin: 16px auto 0; padding: 0 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(10,11,19,.7); box-shadow: 0 18px 60px rgba(0,0,0,.23); backdrop-filter: blur(24px); }
.login-brand { display: inline-flex; align-items: center; gap: 10px; }
.login-brand img { width: 36px; height: 36px; object-fit: contain; }
.login-brand > span { display: grid; line-height: 1; }
.login-brand strong { font-size: 14px; font-weight: 850; }
.login-brand small { margin-top: 5px; color: #71768a; font-size: 8px; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; }
.language-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 9px; font-weight: 800; cursor: pointer; }
.language-toggle i { width: 1px; height: 12px; background: var(--line); }
.language-toggle [data-language-current] { color: #fff; }

.login-shell { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(380px,.72fr); align-items: center; gap: clamp(54px,8vw,120px); width: min(calc(100% - 56px),1160px); min-height: calc(100vh - 174px); margin: 0 auto; padding: 70px 0; }
.login-showcase { max-width: 650px; }
.showcase-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid rgba(94,108,242,.36); border-radius: 999px; color: #8490ff; background: rgba(42,49,144,.1); font-size: 12px; }
.showcase-badge i,.login-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #55dfa0; box-shadow: 0 0 12px rgba(85,223,160,.7); }
.login-showcase h1 { margin: 28px 0 22px; font-size: clamp(64px,7vw,94px); line-height: .96; letter-spacing: -.065em; }
.login-showcase h1 span { color: transparent; background: linear-gradient(100deg,#5f6cf2,#784fe7 60%,#9143df); background-clip: text; -webkit-background-clip: text; }
.login-showcase > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.showcase-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; max-width: 520px; margin-top: 62px; }
.showcase-stats div { display: grid; gap: 7px; }
.showcase-stats strong { font-size: 28px; letter-spacing: -.04em; }
.showcase-stats span { color: #7f88a5; font-size: 12px; }

.login-card { padding: clamp(28px,4vw,44px); border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: radial-gradient(circle at 50% 0,rgba(91,83,225,.13),transparent 38%),var(--surface); box-shadow: 0 35px 100px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(24px); }
.login-card-head { text-align: center; }
.login-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; color: var(--primary-bright); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-card h2 { margin: 0; font-size: clamp(30px,3vw,40px); line-height: 1.06; letter-spacing: -.05em; }
.login-card-head > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-error { margin-top: 22px; padding: 12px 14px; border: 1px solid rgba(239,68,68,.3); border-radius: 11px; color: #ffb0ba; background: rgba(239,68,68,.08); font-size: 11px; line-height: 1.5; }
.provider-list { display: grid; gap: 11px; margin-top: 30px; }
.provider-button { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 13px; min-height: 66px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; color: white; background: rgba(255,255,255,.022); text-decoration: none; transition: transform .2s,border-color .2s,background .2s; }
.provider-button:hover { border-color: rgba(139,143,255,.34); background: rgba(255,255,255,.045); transform: translateY(-2px); }
.provider-discord { border-color: rgba(101,114,245,.38); background: linear-gradient(135deg,rgba(88,101,242,.2),rgba(107,78,223,.13)); }
.provider-icon { display: grid; width: 38px; height: 38px; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: white; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.provider-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.provider-discord-icon { border-color: rgba(88,101,242,.2); background: #e0e3ff; }
.provider-discord-icon img { width: 27px; height: 27px; }
.provider-google { background: white; }
.provider-copy { display: grid; gap: 5px; }
.provider-copy strong { font-size: 12px; }
.provider-copy small { color: #7e8499; font-size: 9px; }
.provider-arrow { color: #9298ad; font-size: 16px; }
.provider-button.is-disabled { opacity: .48; cursor: not-allowed; }
.provider-button.is-disabled:hover { border-color: var(--line); background: rgba(255,255,255,.022); transform: none; }
.login-note { margin: 26px 6px 0; color: #686e82; font-size: 9px; line-height: 1.6; text-align: center; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; width: min(calc(100% - 40px),1240px); margin: 0 auto; padding: 0 4px 28px; color: #5e6375; font-size: 9px; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; max-width: 560px; padding-block: 60px; }
  .login-showcase { text-align: center; }
  .login-showcase h1 { font-size: clamp(58px,12vw,84px); }
  .login-showcase > p { margin-inline: auto; }
  .showcase-stats { margin-inline: auto; }
}

@media (max-width: 560px) {
  .login-header { width: calc(100% - 24px); min-height: 66px; margin-top: 12px; padding-inline: 13px; }
  .login-brand > span { display: none; }
  .login-shell { width: calc(100% - 28px); min-height: auto; gap: 48px; padding-block: 56px 44px; }
  .login-showcase h1 { font-size: clamp(50px,16vw,70px); }
  .login-showcase > p { font-size: 15px; }
  .showcase-stats { gap: 14px; margin-top: 45px; }
  .showcase-stats strong { font-size: 23px; }
  .login-card { padding: 29px 20px; border-radius: 22px; }
  .login-footer { width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition-duration: .01ms!important; animation-duration: .01ms!important; }
}
