/* ==========================================================================
   DeepSeek relay — auth pages (login / register)
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(77, 107, 254, 0.09), transparent 65%),
    var(--bg);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.auth-brand:hover {
  text-decoration: none;
}

.auth-card {
  width: min(400px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 44px rgba(16, 24, 40, 0.08);
  padding: 30px 28px 26px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-card .sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.auth-card .field {
  margin-bottom: 14px;
}

.auth-card .input {
  height: 44px;
  border-radius: 11px;
  font-size: 14.5px;
}

.auth-card .btn-primary {
  height: 44px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
}

.auth-error {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(229, 72, 77, 0.08);
  border: 1px solid rgba(229, 72, 77, 0.18);
  color: #c93a3f;
  font-size: 13px;
  line-height: 1.55;
  display: none;
}

.auth-error.show {
  display: block;
}

.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.auth-foot a {
  color: var(--ds-blue);
  font-weight: 500;
}

.auth-legal {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--text-4);
  text-align: center;
  line-height: 1.7;
  max-width: 380px;
}

.auth-theme {
  position: fixed;
  right: 16px;
  top: 16px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px 22px;
    border-radius: 18px;
  }
  .auth-shell {
    justify-content: flex-start;
    padding-top: 12vh;
  }
  .auth-brand {
    margin-bottom: 20px;
  }
}
