:root {
  color-scheme: dark;
  --bg: #07090b;
  --surface: #11161b;
  --surface-2: #171f26;
  --line: #34404a;
  --ink: #ffffff;
  --muted: #aeb9c2;
  --accent: #34ff8b;
  --danger: #ff6161;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(52, 255, 139, 0.07), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.auth-footer {
  position: fixed;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  font-size: 12px;
}

.auth-footer a {
  color: var(--muted);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 480px;
  padding: 36px;
  background:
    linear-gradient(180deg, rgba(52, 255, 139, 0.16), rgba(7, 18, 14, 0.92)),
    #07120e;
  border-right: 1px solid var(--line);
}

.auth-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #06120d;
  font-size: 34px;
  font-weight: 900;
}

.auth-brand h1,
.auth-panel h2,
.auth-brand p {
  margin: 0;
}

.auth-brand h1 {
  font-size: 38px;
}

.auth-brand p {
  margin-top: 4px;
  color: var(--muted);
}

.auth-panel {
  padding: 34px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.auth-tabs.is-single {
  grid-template-columns: 1fr;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tab.is-active {
  background: var(--accent);
  color: #06120d;
}

.auth-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-panel h2 {
  margin-top: 6px;
  font-size: 28px;
}

#authForm {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

#authForm label {
  display: grid;
  gap: 7px;
}

#authForm label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#authForm input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px;
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}

#authForm input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(52, 255, 139, 0.16);
}

.auth-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.auth-message.is-ok {
  color: var(--accent);
}

.auth-submit {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: var(--accent);
  color: #06120d;
  font-weight: 900;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 700px) {
  body {
    padding: 12px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 120px;
    justify-content: start;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-mark {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .auth-brand h1 {
    font-size: 30px;
  }

  .auth-panel {
    padding: 22px;
  }
}
