.auth-body {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #edede5;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.auth-lang {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
}

.nd-lang-switcher {
  position: relative;
}

.nd-lang-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
}

.nd-lang-btn:hover {
  background: var(--bg-primary);
}

.nd-lang-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.nd-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 120px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 30;
}

.nd-lang-switcher.is-open .nd-lang-dropdown {
  display: block;
}

.nd-lang-option {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: var(--font-sm);
  cursor: pointer;
  color: var(--text-primary);
}

.nd-lang-option:hover,
.nd-lang-option.is-active {
  background: var(--bg-primary);
  color: var(--primary-color);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand h1 {
  margin: 8px 0 6px;
  font-size: var(--font-lg);
  color: var(--primary-color);
}

.auth-brand p {
  margin: 0;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.auth-form .field {
  margin-bottom: 12px;
}

.auth-form label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.auth-form input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
}

.auth-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: var(--font-sm);
  line-height: 1.45;
  word-break: keep-all;
}

.auth-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: var(--font-sm);
  line-height: 1.45;
  word-break: keep-all;
}

.auth-hint {
  margin: 0 0 14px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: keep-all;
  text-align: center;
}

.auth-field-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-divider {
  margin: 18px 0 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted, #8a8a80);
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--border-light, #e4e4dc);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  font: inherit;
  font-size: var(--font-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-oauth:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.btn-oauth-google {
  background: #fff;
  color: #1f2937;
  border-color: #dadce0;
}

.btn-oauth-kakao {
  background: #fee500;
  color: #191919;
  border-color: #fee500;
}

.auth-submit {
  width: 100%;
  height: auto;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--primary-color);
  color: var(--text-white);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius);
  font-size: var(--font-sm);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.auth-footer-sub {
  margin-top: 8px;
}

.auth-footer-sub a {
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.referral-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-primary, #f7f7f2);
}

.referral-label {
  display: block;
  margin: 0 0 6px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.referral-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #e8e8e0;
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-sizing: border-box;
  cursor: default;
}

.referral-benefit {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--primary-color, #2a5a3a);
  font-weight: 600;
}
