:root {
  color-scheme: light;
  --auth-bg: #f7f4ef;
  --auth-surface: #ffffff;
  --auth-text: #1b1d21;
  --auth-muted: #5d6675;
  --auth-border: #e5e7eb;
  --auth-primary: #1f6feb;
  --auth-primary-strong: #1a5fd1;
  --auth-success: #15803d;
  --auth-warning: #b45309;
  --auth-danger: #b42318;
  --auth-pending: #1d4ed8;
  --auth-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--auth-text);
  background: radial-gradient(circle at top, #fff7ed 0%, #f8fafc 45%, #eef2f7 100%);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 20px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--auth-shadow);
}

.auth-header {
  margin-bottom: 24px;
}

.auth-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
}

.auth-input {
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
  background: #ffffff;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-button {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--auth-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-button--primary {
  background: var(--auth-primary);
  color: #ffffff;
  border-color: var(--auth-primary);
}

.auth-button--primary:hover {
  background: var(--auth-primary-strong);
  border-color: var(--auth-primary-strong);
}

.auth-button--secondary {
  background: #ffffff;
  border-color: var(--auth-border);
  color: var(--auth-text);
}

.auth-button--secondary:hover {
  border-color: var(--auth-primary);
  color: var(--auth-primary);
}

.auth-button--ghost {
  color: var(--auth-muted);
}

.auth-button--ghost:hover {
  color: var(--auth-text);
}

.auth-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: var(--auth-text);
  font-size: 13px;
  line-height: 1.6;
}

.auth-status:empty {
  display: none;
}

.auth-status--pending {
  background: #eff6ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.auth-status--success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.auth-status--warning {
  background: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}

.auth-status--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.auth-status--muted {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.auth-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed #fcd34d;
  background: #fffbeb;
  color: #7c2d12;
}

.auth-callout strong {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-content {
  margin-top: 16px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--auth-border);
}

.auth-row:last-child {
  border-bottom: none;
}

.auth-value {
  font-weight: 600;
}

.auth-footer {
  margin: 0;
  font-size: 12px;
  color: var(--auth-muted);
  text-align: center;
  max-width: 420px;
  line-height: 1.6;
}

@media (max-width: 540px) {
  .auth-card {
    padding: 24px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-actions {
    gap: 10px;
  }

  .auth-button {
    width: 100%;
  }
}
