:root {
  --bg: #050505;
  --panel: #101010;
  --line: rgba(255, 255, 255, 0.15);
  --text: #f5f3ed;
  --muted: #b1aca1;
  --accent: #d8ff36;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% 10%, #1e1d15 0%, var(--bg) 45%, #000 100%);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-panel {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 18, 18, 0.95), rgba(8, 8, 8, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.back-link:hover {
  color: var(--accent);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
}

.brand-face {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #000;
  border-radius: 50%;
  padding: 5px;
}

.brand-wordmark {
  width: auto;
  height: 36px;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.subtext {
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-step[hidden] {
  display: none;
}

.otp-title {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.otp-copy {
  margin-top: 6px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  margin: 4px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.check input {
  accent-color: var(--accent);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-button {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.otp-row {
  align-items: center;
}

.login-btn {
  margin-top: 8px;
  min-height: 50px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.login-btn:hover {
  background: transparent;
  color: var(--accent);
}

.signup {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .login-shell {
    padding: 16px;
  }

  .login-panel {
    padding: 20px;
  }

  .brand-face {
    width: 40px;
    height: 40px;
  }

  .brand-wordmark {
    height: 30px;
  }
}

@media (max-width: 760px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .text-link,
  .check {
    font-size: 0.82rem;
  }

  .login-btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .login-panel {
    padding: 16px;
  }

  h1 {
    font-size: clamp(1.45rem, 9vw, 1.95rem);
  }

  .brand-row {
    margin: 14px 0 12px;
  }
}
