/* Meechu Phase 5 — auth pages (login + onboarding shared) */
:root {
  --bg: #f8fafc;
  --bg-soft: #eef6fb;
  --surface: #ffffff;
  --text: #1e293b;
  --text-secondary: #475569;
  --muted: #64748b;
  --sky: #38bdf8;
  --sky-soft: #e0f2fe;
  --mint-deep: #14b8a6;
  --mint-soft: #ccfbf1;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --touch: 48px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --max-w: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--bg) 45%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(24px + var(--safe-t)) 24px calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--sky), var(--mint-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-tagline {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 600;
}

.auth-tagline p + p { margin-top: 8px; }

.lang-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.lang-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lang-btn.is-on {
  border-color: var(--sky);
  color: var(--mint-deep);
  background: var(--sky-soft);
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-auth {
  min-height: var(--touch);
  border: none;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.btn-auth:active { transform: scale(0.98); }

.btn-google {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-kakao {
  background: #fee500;
  color: #1a1a1a;
}

.btn-apple {
  background: #1e293b;
  color: #fff;
}

.btn-guest {
  background: var(--mint-soft);
  color: var(--mint-deep);
  margin-top: 4px;
}

.auth-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

.ob-progress {
  height: 4px;
  background: var(--sky-soft);
  border-radius: 999px;
  margin-bottom: 24px;
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--mint-deep));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.ob-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 8px;
}

.ob-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.ob-grid.single { grid-template-columns: 1fr; }

.ob-chip {
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: left;
}

.ob-chip.is-on {
  border-color: var(--sky);
  background: var(--sky-soft);
  color: var(--mint-deep);
}

.ob-promise {
  background: linear-gradient(145deg, var(--sky-soft), var(--mint-soft));
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.ob-promise p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.ob-promise p:last-child { margin-bottom: 0; }

.ob-nav {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.btn-primary {
  flex: 1;
  min-height: var(--touch);
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sky), var(--mint-deep));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.btn-ghost {
  min-height: var(--touch);
  padding: 0 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}

.ob-panel { display: none; flex: 1; flex-direction: column; }
.ob-panel.is-active { display: flex; animation: fade-in 0.35s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
