/**
 * DS4K 회원가입 · 로그인 페이지
 */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --sky: #0ea5e9;
  --sky-deep: #0369a1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 0%, #e0f2fe 0%, transparent 45%),
    radial-gradient(ellipse at 90% 10%, #fce7f3 0%, transparent 40%),
    #f8fafc;
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

.auth-page {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.auth-logo {
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--sky-deep);
  font-size: 1.25rem;
}

.auth-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

.auth-home-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sky-deep);
  text-decoration: none;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px 22px 28px;
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
  border: 1px solid #fff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.auth-tab {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
.auth-tab.is-active {
  background: #fff;
  color: var(--sky-deep);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-title {
  margin: 0;
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.35;
  word-break: keep-all;
}

.auth-desc {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.55;
  word-break: keep-all;
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.auth-btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.12s, filter 0.15s;
}
.auth-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.auth-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-btn-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
}

.auth-kakao {
  background: #fee500;
  color: #191600;
  box-shadow: 0 3px 0 #c6b400;
}
.auth-naver {
  background: #03c75a;
  color: #fff;
  box-shadow: 0 3px 0 #028a3f;
}
.auth-google {
  background: #fff;
  color: #1f2937;
  border: 2px solid #e5e7eb;
  box-shadow: 0 3px 0 #d1d5db;
}
.auth-google .auth-btn-icon {
  color: #ea4335;
}
.auth-submit {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 3px 0 var(--sky-deep);
  width: 100%;
}

.auth-note {
  margin: 16px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.45;
  word-break: keep-all;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.auth-field input {
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: #f8fafc;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--sky);
  background: #fff;
}

.auth-done {
  text-align: center;
}
.auth-done-icon {
  width: 56px;
  height: 56px;
  margin: 8px auto 12px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-done-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
}
.auth-link {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.auth-hint {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.45;
}
.auth-hint.is-error {
  color: #b91c1c;
}
