/* 홈페이지 로그인 / 회원 메뉴 / 약관 동의 / 회원가입 페이지 — css/home.css 의 색 변수를 그대로 씁니다 */

/* ---------- 헤더 로그인 버튼 · 회원 칩 ---------- */
.auth-slot { position: relative; display: flex; align-items: center; }
.auth-btn { padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 0.86rem; color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(124, 92, 252, 0.3); transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap; }
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124, 92, 252, 0.4); }
.auth-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--card-soft); border: 1px solid var(--line); font-weight: 700; font-size: 0.84rem; max-width: 190px; }
.auth-chip:hover { background: var(--tint); }
.auth-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--tint); color: var(--primary-deep); font-weight: 800; font-size: 0.85rem; }
.au-av img { width: 100%; height: 100%; object-fit: cover; }
.auth-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-hover); z-index: 50; }
.auth-menu[hidden] { display: none; }
.auth-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.auth-menu .who b { display: block; color: var(--text); font-size: 0.9rem; }
.auth-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; font-weight: 700; font-size: 0.88rem; }
.auth-menu button:hover { background: var(--tint); }
.auth-menu button.out { color: #E5485D; }

/* ---------- 모달 ---------- */
.au-ov { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; background: rgba(15, 10, 35, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: aufade 0.15s ease; }
@keyframes aufade { from { opacity: 0; } to { opacity: 1; } }
.au-card { width: 100%; max-width: 410px; max-height: 92vh; overflow: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); padding: 28px 26px 24px; line-height: 1.55; }
.au-card h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.au-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.au-fld { display: block; margin-bottom: 12px; }
.au-fld > span { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.au-fld input[type=text], .au-fld input[type=email], .au-fld input[type=password] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); color: inherit; font: inherit; font-size: 0.95rem; }
.au-fld input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2); background: var(--card); }
.au-msg { min-height: 1.3em; margin: 4px 0 10px; font-size: 0.84rem; font-weight: 600; color: #E5485D; }
.au-msg.ok { color: #2FA37E; }
.au-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 12px; font-weight: 800; font-size: 0.94rem; border: 1px solid var(--line); background: var(--card); color: inherit; transition: transform 0.15s, background 0.15s; }
.au-btn:hover:not(:disabled) { background: var(--tint); }
.au-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.au-btn.pri { border: 0; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(124, 92, 252, 0.3); }
.au-btn.pri:hover:not(:disabled) { background: var(--grad); transform: translateY(-1px); }
.au-btn.danger { border-color: #E5485D; color: #E5485D; }
.au-btn.danger:hover:not(:disabled) { background: #E5485D; color: #fff; }
.au-btn svg { width: 18px; height: 18px; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 0.78rem; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.au-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.85rem; }
.au-links a, .au-links button { color: var(--primary-deep); font-weight: 700; }
.au-links a:hover, .au-links button:hover { text-decoration: underline; }
.au-row { display: flex; gap: 10px; margin-top: 14px; }
.au-row .au-btn { flex: 1; }
.au-x { float: right; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; color: var(--muted); margin: -8px -8px 0 0; }
.au-x:hover { background: var(--tint); }
.au-kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 0.86rem; margin: 6px 0 14px; }
.au-kv dt { color: var(--faint); font-weight: 700; }
.au-kv dd { overflow-wrap: anywhere; }
.au-sec { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.au-sec h3 { font-size: 0.9rem; margin-bottom: 10px; }
.au-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 2500; padding: 12px 18px; border-radius: 12px; background: #251f3f; color: #fff; font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-width: min(92vw, 480px); }
.au-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 약관 동의 ---------- */
.cs-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.cs-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card-soft); }
.cs-item.all { background: var(--tint); font-weight: 800; }
.cs-item label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; line-height: 1.45; }
.cs-item input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.cs-tag { font-size: 0.72rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-right: 6px; }
.cs-tag.req { background: rgba(229, 72, 93, 0.12); color: #E5485D; }
.cs-tag.opt { background: var(--tint); color: var(--muted); }
.cs-more { display: block; margin: 6px 0 0 28px; font-size: 0.8rem; color: var(--primary-deep); font-weight: 700; }
.cs-detail { margin: 8px 0 0 28px; padding-left: 14px; font-size: 0.8rem; color: var(--muted); }
.cs-detail li { margin-bottom: 4px; }

/* ---------- 회원가입 페이지 ---------- */
.su-body { min-height: 100vh; }
.su-top { max-width: 1080px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.su-wrap { display: grid; place-items: start center; padding: 12px 16px 60px; }
.su-card { width: 100%; max-width: 480px; background: var(--card-soft); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 34px 30px 28px; }
.su-card h1 { font-size: 1.55rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.su-done { text-align: center; padding: 14px 0; }
.su-done .big { font-size: 3rem; }
.su-done p { color: var(--muted); margin: 8px 0 18px; }
@media (max-width: 520px) { .su-card { padding: 26px 20px 22px; border-radius: 22px; } .au-card { padding: 24px 20px 20px; } }
@media (prefers-reduced-motion: reduce) { .au-ov { animation: none; } .au-toast, .auth-btn { transition: none; } }

/* hidden 속성이 버튼·입력 칸의 display 설정에 밀리지 않게 */
.su-card [hidden], .au-card [hidden] { display: none !important; }
