/* GlowMatch website — shared Glass theme (mirrors app-new/constants/theme.ts) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #4A6FE3;
  --gold-light: #6B47CC;
  --iris-start: #9CC4FF;
  --iris-mid: #C7AEFF;
  --iris-end: #FFB6D4;
  --bg: #F0F4FF;
  --surface: rgba(255,255,255,0.55);
  --surface2: rgba(255,255,255,0.7);
  --white: #FFFFFF;
  --text: #1E232B;
  --muted: #5A6271;
  --border: rgba(107,142,255,0.18);
  --border-gold: rgba(107,142,255,0.30);
  --brand-mid: rgba(74,111,227,0.08);
  --clear: #059669;
  --mild: #D97706;
  --moderate: #DC2626;
  --severe: #7F1D1D;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(156,196,255,0.35), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(199,174,255,0.3), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(255,182,212,0.22), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* NAV */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active { color: var(--gold); font-weight: 700; }
.nav-links .signout { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; font-family: inherit; }

/* Shared page shell for authenticated pages */
.page { max-width: 640px; margin: 0 auto; padding: 90px 20px 60px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-title { font-size: 22px; font-weight: 800; }
.back-btn { background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: 4px; }
.section-title { font-size: 15px; font-weight: 700; margin: 24px 0 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.empty-card { text-align: center; padding: 48px 24px; }
.loading-center { text-align: center; padding: 100px 20px; color: var(--muted); }

/* GLASS CARD */
.glass-card {
  background: var(--surface2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(74,111,227,0.08);
}

/* BUTTONS */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  width: 100%;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(74,111,227,0.28);
}
.btn-google { background: var(--white); color: #1F2937; border: 1px solid var(--border); }
.btn-kakao { background: #FEE500; color: #1E232B; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-text {
  background: none; border: none; color: var(--muted); font-size: 13px;
  text-decoration: underline; cursor: pointer; width: auto; height: auto;
}

/* FORM */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--gold); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-error { font-size: 12px; color: var(--moderate); margin-top: 4px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; text-align: left; cursor: pointer; }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; }
.checkbox-row span { font-size: 13px; color: var(--text); line-height: 1.5; }
.checkbox-row a { color: var(--gold); text-decoration: underline; }

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
}

.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: var(--muted); }
.center { text-align: center; }
