:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --ink: #f3f1f4;
  --muted: #a3a5b0;
  --accent: #d9a9b6;
  --line: rgba(235, 237, 247, .12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(5, 7, 12, .84) 0%, rgba(5, 7, 12, .65) 49%, rgba(5, 7, 12, .77) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, .20), rgba(5, 7, 12, .76)),
    url("../img/orion-glass-bg.jpg") center / cover fixed no-repeat,
    #080b13;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 460px at 83% 16%, rgba(116, 139, 211, .13), transparent 68%),
    radial-gradient(680px 420px at 8% 100%, rgba(160, 82, 118, .13), transparent 72%);
}

.login-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1540px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 46px 24px;
}

.login-header, .login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-header {
  min-height: 68px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(235, 237, 247, .10);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .15em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: .95;
  filter: saturate(.72) contrast(1.06);
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #8e919d;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .28em;
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #aeb0ba;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.service-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dc9ad;
  box-shadow: 0 0 13px rgba(125, 201, 173, .55);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
  align-items: center;
  gap: clamp(56px, 8vw, 140px);
  flex: 1;
  padding: 62px 5vw 54px;
}

.login-intro { max-width: 790px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #c9c8d0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}

.eyebrow span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(217, 169, 182, .28);
  border-radius: 50%;
  color: var(--accent);
  letter-spacing: 0;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(54px, 6.1vw, 96px);
  line-height: .96;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.login-intro h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: inherit;
}

.intro-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: #b0b1bb;
  font-size: 16px;
  line-height: 1.7;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .16);
}

.feature-row article {
  min-height: 96px;
  padding: 20px 18px;
  background: linear-gradient(145deg, rgba(27, 32, 47, .72), rgba(14, 18, 29, .82));
}

.feature-row strong, .feature-row span { display: block; }
.feature-row strong { margin-bottom: 8px; color: #f2e8eb; font-size: 13px; }
.feature-row span { color: #898c98; font-size: 11px; line-height: 1.45; }

.login-panel-wrap { width: min(100%, 460px); justify-self: end; }

.login-card {
  position: relative;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(235, 237, 247, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(36, 42, 61, .78), rgba(15, 18, 28, .90));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 30px 80px rgba(0, 0, 0, .34);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 169, 182, .66), transparent);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d7b2bc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.card-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217, 169, 182, .24);
  border-radius: 9px;
  background: rgba(217, 169, 182, .09);
  color: #efd1d9;
  font-size: 15px;
}

.login-card h2 {
  margin: 29px 0 14px;
  font-size: clamp(32px, 3.4vw, 47px);
  line-height: 1.02;
  letter-spacing: -.048em;
}

.card-intro {
  margin: 0 0 31px;
  color: #a6a8b3;
  font-size: 14px;
  line-height: 1.65;
}

.discord-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(240, 214, 221, .32);
  border-radius: 9px;
  background: linear-gradient(110deg, #d3a2af, #b989a0);
  box-shadow: 0 12px 30px rgba(151, 91, 119, .22), inset 0 1px rgba(255, 255, 255, .22);
  color: #211820;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.discord-button:hover, .discord-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(151, 91, 119, .30), inset 0 1px rgba(255, 255, 255, .25);
  outline: none;
}

.discord-button svg { width: 21px; height: 21px; }
.discord-button b { margin-left: auto; font-size: 14px; }

.security-note {
  display: flex;
  gap: 13px;
  margin-top: 27px;
  padding-top: 24px;
  border-top: 1px solid rgba(235, 237, 247, .10);
  color: #8d909c;
}

.security-note > span { color: #7dc9ad; font-size: 20px; line-height: 1; }
.security-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.security-note strong { display: block; margin-bottom: 3px; color: #c8c8d0; font-size: 11px; }

.restricted {
  margin: 15px 0 0;
  color: #717480;
  font-size: 9px;
  letter-spacing: .16em;
  text-align: center;
}

.login-footer {
  min-height: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(235, 237, 247, .10);
  color: #737682;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
}

@media (max-width: 1050px) {
  .login-page { padding-inline: 28px; }
  .login-layout { grid-template-columns: 1fr; gap: 48px; padding: 54px 2vw; }
  .login-intro { max-width: 820px; }
  .login-panel-wrap { width: min(100%, 560px); justify-self: start; }
}

@media (max-width: 680px) {
  .login-page { padding: 20px 18px; }
  .service-state { font-size: 0; }
  .service-state i { display: block; }
  .login-layout { padding: 46px 0 38px; }
  .login-intro h1 { font-size: clamp(46px, 14vw, 68px); }
  .intro-copy { font-size: 14px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row article { min-height: 76px; }
  .login-card { padding: 28px 24px; border-radius: 14px; }
  .login-footer span:nth-child(2) { display: none; }
}

@media (max-width: 420px) {
  .login-header { min-height: 58px; }
  .brand { font-size: 19px; }
  .brand img { width: 36px; height: 36px; }
  .login-card h2 { font-size: 34px; }
  .login-footer span:last-child { display: none; }
}
