:root {
  color-scheme: light;
  --ink: #382711;
  --muted: #786b59;
  --line: rgba(133, 84, 13, .14);
  --orange: #f28a18;
  --yellow: #ffbd19;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(150deg, #fffdf5, #fff4c7);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
.ambient { position: fixed; z-index: -1; width: 360px; height: 360px; border-radius: 50%; filter: blur(28px); opacity: .28; }
.ambient-one { top: -130px; right: -90px; background: #ffd239; }
.ambient-two { bottom: -160px; left: -90px; background: #ff9a3c; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 70px rgba(119, 72, 0, .17), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
}
.brand-row { display: flex; align-items: center; gap: 17px; margin-bottom: 20px; }
.logo-wrap { flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 23px; background: linear-gradient(145deg, #fff7bd, #ffc72f); box-shadow: 0 9px 0 #e8a522; }
.logo-wrap img { width: 61px; height: 61px; border-radius: 19px; }
.eyebrow { color: #ba6500; font-size: 10px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 5px 0 0; font-size: clamp(28px, 7vw, 40px); letter-spacing: -.05em; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 7px 0 20px; padding: 5px; background: #fff6cf; border: 1px solid var(--line); border-radius: 17px; }
.auth-tab { min-height: 44px; color: #81510f; font-weight: 900; cursor: pointer; background: transparent; border: 0; border-radius: 12px; }
.auth-tab.is-active { color: #452800; background: #fff; box-shadow: 0 6px 16px rgba(107, 66, 0, .12); }
.lead { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
form { display: grid; gap: 13px; }
label { display: grid; gap: 7px; }
label span { font-size: 12px; font-weight: 850; }
label small { color: var(--muted); font-size: 10px; line-height: 1.4; }
input { width: 100%; min-height: 49px; padding: 0 14px; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; outline: none; }
input:focus { border-color: #e8a21a; box-shadow: 0 0 0 4px rgba(255, 189, 25, .18); }
form button { min-height: 51px; margin-top: 4px; color: #4c2a00; font-weight: 950; cursor: pointer; background: linear-gradient(145deg, #ffd85c, var(--yellow)); border: 0; border-radius: 15px; box-shadow: 0 7px 0 #d89417; }
form button:active { transform: translateY(2px); box-shadow: 0 5px 0 #d89417; }
button:disabled { cursor: wait; opacity: .65; }
.status { min-height: 22px; margin: 17px 0 0; color: #b02a2a; font-size: 13px; font-weight: 750; }
.status.success { color: #207548; }
.tier-preview { display: grid; gap: 7px; margin-top: 12px; }
.tier-preview article { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; }
.tier-preview b { font-size: 12px; }
.tier-preview span { color: var(--muted); font-size: 11px; line-height: 1.4; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .login-shell { padding: 14px; }
  .login-card { padding: 23px 18px; border-radius: 24px; }
  .brand-row { align-items: flex-start; }
  .logo-wrap { width: 62px; height: 62px; }
  .logo-wrap img { width: 53px; height: 53px; }
}
