:root {
  --bg: #07090f;
  --card: #121722;
  --line: rgba(196, 178, 146, 0.3);
  --text: #ebe6dc;
  --muted: #9c978d;
  --accent: #c9a227;
  --accent-strong: #0f4f99;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(201, 162, 39, 0.15), transparent 45%),
    radial-gradient(circle at bottom, rgba(52, 75, 120, 0.25), transparent 40%),
    var(--bg);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.auth-card {
  width: min(100%, 520px);
  background: rgba(18, 23, 34, 0.93);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.back-home {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
}

.back-home:hover {
  color: var(--text);
}

.brand {
  font-family: "Gowun Batang", serif;
  font-size: 2.05rem;
  margin: 0.65rem 0 0.8rem;
  text-align: center;
  color: var(--accent);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0.7rem 0.4rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.auth-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.auth-pane {
  display: none;
}

.auth-pane.is-active {
  display: block;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e131d;
  color: var(--text);
  border-radius: 6px;
  padding: 0.85rem 0.75rem;
  font: inherit;
  margin-bottom: 0.9rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.primary-btn {
  width: 100%;
  border: 1px solid rgba(15, 79, 153, 0.5);
  border-radius: 6px;
  background: linear-gradient(180deg, #1164c0, #0f4f99);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 0.8rem 0.7rem;
  cursor: pointer;
}

.auth-note {
  min-height: 1.4em;
  margin: 0.65rem 0 0;
  color: var(--accent);
  font-size: 0.84rem;
}

.auth-links {
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
}

.auth-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-links a:hover {
  color: var(--text);
}

.social-title {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 2rem 0 0.95rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.social-grid button {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f7fa;
  color: #111;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.page-title {
  margin: 0.85rem 0 0.15rem;
  font-family: "Gowun Batang", serif;
  text-align: center;
  font-size: 2rem;
}

.page-subtitle {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--muted);
}

.signup-options {
  display: grid;
  gap: 0.55rem;
}

.signup-options button {
  border: 1px solid var(--line);
  background: #111722;
  color: var(--text);
  border-radius: 0;
  text-align: left;
  padding: 0.88rem 1rem;
  font: inherit;
  cursor: pointer;
}

.signup-method.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.signup-options button:hover {
  border-color: var(--accent);
}

.divider {
  text-align: center;
  color: var(--muted);
  margin: 0.95rem 0;
}

.to-login {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--muted);
}

.to-login a {
  color: var(--accent);
  text-decoration: none;
}

.signup-form-detail {
  margin-top: 1rem;
  display: grid;
  gap: 0.52rem;
}

.signup-form-detail label {
  color: var(--muted);
  font-size: 0.84rem;
}

.signup-form-detail input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e131d;
  color: var(--text);
  border-radius: 6px;
  padding: 0.72rem 0.72rem;
  font: inherit;
}

.signup-form-detail input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.inline-btn {
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  background: #1a2333;
  color: var(--text);
  font-size: 0.8rem;
  padding: 0 0.65rem;
  cursor: pointer;
}

.email-field {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.email-field span {
  color: var(--muted);
  font-weight: 700;
}

.email-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e131d;
  color: var(--text);
  border-radius: 6px;
  padding: 0.72rem 0.72rem;
  font: inherit;
}

.divider-line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}

.danger-btn {
  width: 100%;
  border: 1px solid rgba(185, 80, 80, 0.5);
  border-radius: 6px;
  background: linear-gradient(180deg, #8d2e2e, #5f1d1d);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.74rem;
  cursor: pointer;
}
