body.auth-mode {
  background: #07090f;
}

body.auth-mode #app {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-panel {
  width: min(100%, 390px);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: #0d111a;
}

.auth-logo {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
  margin-bottom: 22px;
}

.auth-kicker {
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.auth-panel h1 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: 0;
}

.auth-panel > p {
  margin: 10px 0 24px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-panel input[readonly] {
  color: rgba(255,255,255,0.78);
}

.auth-panel .btn-primary {
  width: 100%;
  min-height: 46px;
}

.auth-code-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

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

.auth-code-wrap .form-group {
  margin: 0;
}

.auth-code-wrap input {
  min-height: 46px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-verify-code {
  min-height: 46px;
}

.auth-message {
  min-height: 18px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
}

.auth-message.success { color: var(--accent-green) }
.auth-message.error { color: #ff6464 }

.auth-signout {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
}

@media (max-width: 480px) {
  .auth-shell { padding: 12px }
  .auth-panel { padding: 24px 18px }
  .auth-code-wrap { grid-template-columns: minmax(0, 1fr) 96px }
}
