:root {
  --bg: #f5efe4;
  --surface: rgba(255, 252, 246, 0.9);
  --surface-strong: #fffdf8;
  --text: #1d2a2a;
  --muted: #5d6b69;
  --line: rgba(29, 42, 42, 0.1);
  --accent: #e47c4b;
  --accent-deep: #aa4d25;
  --shadow: 0 24px 64px rgba(45, 36, 24, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(228, 124, 75, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(106, 156, 137, 0.22), transparent 28%),
    linear-gradient(145deg, #fbf7ef 0%, #efe6d9 100%);
}

button,
input {
  font: inherit;
}

.auth-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(45, 36, 24, 0.08);
}

.auth-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a9c89;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-tabs {
  display: inline-flex;
  gap: 10px;
  margin-top: 30px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(29, 42, 42, 0.06);
}

.tab-button {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab-button.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(45, 36, 24, 0.08);
}

.status-message {
  min-height: 24px;
  margin: 18px 0 4px;
  color: var(--muted);
}

.status-message.is-error {
  color: #b44328;
}

.status-message.is-success {
  color: #2f7a51;
}

.panel {
  display: none;
  margin-top: 6px;
}

.panel.is-active {
  display: block;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form span {
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.primary-button {
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fffaf5;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(170, 77, 37, 0.2);
}

.primary-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 680px) {
  .auth-shell {
    width: min(100% - 20px, 920px);
    padding: 20px 0 34px;
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .auth-tabs {
    width: 100%;
    justify-content: space-between;
  }
}
