:root {
  color-scheme: dark;
  --canvas: #0b0e13;
  --surface: #151b23;
  --surface-raised: #1c242e;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8f5ee;
  --muted: #96a0af;
  --accent: #ffb24c;
  --teal: #56d6c9;
  --danger: #ff7b7b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(255, 178, 76, 0.72);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
}

.login-intro {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 70px);
  background:
    radial-gradient(circle at 82% 16%, rgba(86, 214, 201, 0.14), transparent 24rem),
    radial-gradient(circle at 8% 92%, rgba(255, 178, 76, 0.13), transparent 26rem),
    #0d1117;
}

.brand,
.mobile-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: var(--accent);
  color: #20160a;
  box-shadow: 0 14px 34px rgba(255, 157, 46, 0.2);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.brand-mark::after {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 26px;
  height: 26px;
  border: 5px solid rgba(32, 22, 10, 0.14);
  border-radius: 50%;
  content: "";
}

.brand-name {
  font-size: 17px;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.intro-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding-block: 70px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.22em;
}

.intro-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(46px, 6.5vw, 88px);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.intro-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.8;
}

.feature-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.feature-strip > div {
  min-width: 0;
  padding: 17px 18px;
  background: rgba(15, 20, 27, 0.93);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 13px;
}

.feature-strip span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-art {
  position: absolute;
  top: 50%;
  right: clamp(-210px, -9vw, -90px);
  width: clamp(360px, 42vw, 680px);
  aspect-ratio: 1;
  opacity: 0.38;
  transform: translateY(-50%);
}

.record-disc {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #131820 0 4px, #222933 5px 8px);
  box-shadow: inset 0 0 80px #000, 0 40px 100px rgba(0, 0, 0, 0.5);
}

.record-disc span {
  width: 34%;
  aspect-ratio: 1;
  border: 28px solid var(--accent);
  border-radius: 50%;
  background: #15100a;
}

.record-caption {
  position: absolute;
  right: 12%;
  bottom: 1%;
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.login-panel {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding: clamp(34px, 5vw, 78px);
  border-left: 1px solid var(--line);
  background: #12171e;
}

.mobile-brand {
  display: none;
}

.login-copy h2,
.login-copy p {
  margin: 0;
}

.login-copy h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.045em;
}

.login-copy > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

#loginForm {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

#loginForm label {
  display: grid;
  gap: 8px;
}

#loginForm label > span {
  color: #c5ccd5;
  font-size: 12px;
  font-weight: 720;
}

#loginForm input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #0d1218;
  color: var(--text);
  outline: none;
}

#loginForm input::placeholder {
  color: #5f6a79;
}

#loginForm input:focus {
  border-color: rgba(255, 178, 76, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 178, 76, 0.1);
}

#loginButton {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: var(--accent);
  color: #1d1408;
  box-shadow: 0 14px 34px rgba(255, 157, 46, 0.17);
  font-weight: 800;
  cursor: pointer;
}

#loginButton:hover {
  background: #ffc16f;
  transform: translateY(-1px);
}

#loginButton:disabled {
  cursor: wait;
  opacity: 0.6;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 123, 123, 0.2);
  border-radius: 13px;
  background: rgba(255, 123, 123, 0.1);
  color: var(--danger);
  font-size: 12px;
  font-weight: 680;
}

.privacy-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #687382;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: minmax(0, 0.85fr) minmax(400px, 1fr);
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .intro-copy h1 {
    font-size: clamp(42px, 6vw, 64px);
  }
}

@media (max-width: 760px) {
  .login-shell {
    display: block;
  }

  .login-intro {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
    border: 0;
    background:
      radial-gradient(circle at 92% 2%, rgba(86, 214, 201, 0.1), transparent 18rem),
      radial-gradient(circle at 2% 96%, rgba(255, 178, 76, 0.08), transparent 20rem),
      #10151c;
  }

  .mobile-brand {
    display: inline-flex;
    margin-bottom: clamp(64px, 13vh, 120px);
  }

  .login-copy h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  #loginForm {
    margin-top: 28px;
  }
}

@media (max-height: 670px) and (max-width: 760px) {
  .mobile-brand {
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
