:root {
  --bg: #081018;
  --panel: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.13);
  --text: #edf8f5;
  --muted: #8fa29d;
  --green: #33ff99;
  --cyan: #5adcff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(51, 255, 153, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(90, 220, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 75% 10%, rgba(90, 220, 255, 0.18), transparent 30rem),
    var(--bg);
  background-size: 54px 54px, 54px 54px, auto;
}

button,
input,
select {
  font: inherit;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.75fr);
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
}

.brand-panel,
.auth-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 28px;
  color: #06100c;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 10px;
  font-size: 34px;
  font-weight: 1000;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.feature-grid div,
.notice {
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

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

.feature-grid strong,
.notice strong {
  margin-bottom: 6px;
}

.feature-grid span,
.notice span {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.tabs button,
.ghost-btn,
.primary-btn {
  height: 42px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.tabs button {
  color: var(--muted);
  background: transparent;
}

.tabs button.active,
.primary-btn {
  color: #06100c;
  background: var(--green);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  outline: 0;
}

select,
select option {
  color: #111827;
  background: #ffffff;
}

input:focus {
  border-color: rgba(51, 255, 153, 0.55);
  box-shadow: 0 0 0 3px rgba(51, 255, 153, 0.1);
}

select:focus {
  border-color: rgba(51, 255, 153, 0.55);
  box-shadow: 0 0 0 3px rgba(51, 255, 153, 0.1);
}

label small {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
  align-items: end;
}

.ghost-btn {
  color: var(--cyan);
  background: rgba(90, 220, 255, 0.1);
  border: 1px solid rgba(90, 220, 255, 0.24);
}

.dev-code {
  min-height: 42px;
  padding: 11px 12px;
  color: var(--cyan);
  background: rgba(90, 220, 255, 0.08);
  border: 1px solid rgba(90, 220, 255, 0.18);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.notice {
  margin-top: 18px;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.login-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(90, 220, 255, 0.18);
  border-radius: 8px;
}

.login-method span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.login-method button {
  height: 38px;
  color: var(--cyan);
  background: rgba(90, 220, 255, 0.08);
  border: 1px solid rgba(90, 220, 255, 0.22);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.login-method button.active {
  color: #06100c;
  background: var(--green);
  border-color: transparent;
}
