/* DAINO 공통 로그인 — 토큰·브랜드·버튼은 daino-home.css, 여기는 레이아웃만. 모바일 우선. */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; }

/* 브랜드 패널(데스크톱에서만) */
.auth__brand { display: none; }
.brand--light { color: #fff; }
.brand--light .brand__dot { color: #9cc2ff; }

/* 로그인 패널 */
.auth__panel { position: relative; display: flex; flex-direction: column; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow: hidden; }
.auth__panel::before { content: ""; position: absolute; width: 420px; height: 420px; top: -180px; right: -160px; border-radius: 50%; background: #cfe0ff; filter: blur(70px); opacity: .6; pointer-events: none; }
.auth__panel::after { content: ""; position: absolute; width: 320px; height: 320px; bottom: -140px; left: -140px; border-radius: 50%; background: #e1d9ff; filter: blur(70px); opacity: .6; pointer-events: none; }
.auth__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.auth__foot { position: relative; z-index: 1; display: flex; justify-content: center; gap: 18px; font-size: 14px; color: var(--dp-muted); }
.auth__foot a:hover { color: var(--dp-ink-2); }

.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px; margin: auto; padding: 32px 24px;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--dp-radius-panel);
  box-shadow: var(--dp-shadow-3); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.auth-card__title { font-size: 28px; font-weight: 800; letter-spacing: -.05em; }
.auth-card__desc { margin-top: 8px; color: var(--dp-ink-2); line-height: 1.6; }
.auth-card__error { margin-top: 16px; padding: 12px 14px; font-size: 14px; color: #b3261e; background: #fdecec; border-radius: 12px; }
.auth-card__actions { display: grid; gap: 10px; margin-top: 24px; }

.sns-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 20px; border-radius: 16px; font-size: 16px; font-weight: 700; letter-spacing: -.02em;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.sns-btn__icon { position: absolute; left: 18px; width: 22px; height: 22px; }
.sns-btn:hover { transform: translateY(-2px); }
.sns-btn:active { transform: scale(.98); }
.sns-btn--google { color: var(--dp-ink); background: #fff; border: 1px solid rgba(15, 23, 42, .12); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.sns-btn--google:hover { box-shadow: var(--dp-shadow-2); }
.sns-btn--kakao { color: #191600; background: #fee500; box-shadow: 0 1px 2px rgba(120, 100, 0, .12); }
.sns-btn--kakao:hover { background: #ffe81a; box-shadow: 0 10px 24px rgba(200, 170, 0, .28); }

.auth-card__services { margin-top: 24px; padding: 14px 16px; text-align: center; background: var(--dp-surface-2); border: 1px solid var(--dp-line); border-radius: 16px; }
.auth-card__services span { font-size: 13px; color: var(--dp-muted); }
.auth-card__services p { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; font-size: 14px; }
.auth-card__services p a { padding: 4px 2px; font-weight: 800; letter-spacing: -.02em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.auth-card__services p a:hover { text-decoration-color: currentColor; }
.auth-card__services p a:first-child { color: var(--dp-blue); }
.auth-card__services p a:last-child { color: #e9562c; }
.auth-card__services i { width: 4px; height: 4px; border-radius: 50%; background: var(--dp-muted); }
.auth-card__terms { margin-top: 18px; font-size: 13px; line-height: 1.6; text-align: center; color: var(--dp-muted); }
.auth-card__terms a { color: var(--dp-ink-2); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 640px) {
  .auth-card { padding: 40px 36px; }
}

@media (min-width: 1024px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth__top .brand { visibility: hidden; }
  .auth__brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    margin: 16px 0 16px 16px; padding: 36px 44px; gap: 28px; color: #fff; border-radius: 32px;
    background: linear-gradient(150deg, #1f74ff 0%, #0a4fd1 55%, #2b1f9e 100%);
    box-shadow: 0 30px 60px rgba(18, 107, 255, .25);
  }
  .auth__brand > *:not(.auth__glow) { position: relative; z-index: 1; }
  .auth__eyebrow { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .7); }
  .auth__headline { margin-top: 12px; font-size: clamp(34px, 3.2vw, 46px); font-weight: 800; line-height: 1.2; letter-spacing: -.05em; }
  .auth__sub { margin-top: 16px; color: rgba(255, 255, 255, .78); line-height: 1.65; }
  .auth__stack { position: relative; display: grid; gap: 16px; perspective: 1000px; }
  .auth__stack { max-width: 460px; }
  .auth-svc {
    padding: 18px 20px; color: var(--dp-ink); background: rgba(255, 255, 255, .95); border-radius: 22px;
    box-shadow: 0 18px 40px rgba(3, 20, 60, .28); animation: floatY 8s ease-in-out infinite;
  }
  .auth-svc--store { margin-left: 32px; animation-delay: -4s; }
  .auth-svc__head { display: flex; align-items: center; gap: 12px; }
  .auth-svc__head b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
  .auth-svc__head small { display: block; font-size: 13px; color: var(--dp-ink-2); }
  .auth-svc__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; }
  .auth-svc__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .auth-svc--pick .auth-svc__icon { color: var(--dp-blue); background: var(--dp-blue-soft); }
  .auth-svc--store .auth-svc__icon { color: #e9562c; background: #fff0ea; }
  .auth-svc__link { margin-left: auto; padding: 8px 12px; font-size: 13px; font-weight: 700; border-radius: 999px; transition: background .2s ease, transform .2s ease; }
  .auth-svc--pick .auth-svc__link { color: var(--dp-blue); background: var(--dp-blue-soft); }
  .auth-svc--store .auth-svc__link { color: #c2451f; background: #fff0ea; }
  .auth-svc__link:hover { transform: translateX(2px); }
  .auth-svc__desc { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--dp-ink-2); }
  .auth-svc__list { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
  .auth-svc__list li { position: relative; padding-left: 16px; font-size: 13px; font-weight: 600; color: var(--dp-ink); }
  .auth-svc__list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
  .auth-svc--pick .auth-svc__list li::before { background: var(--dp-blue); opacity: 1; }
  .auth-svc--store .auth-svc__list li::before { background: #e9562c; opacity: 1; }
  .auth__glow i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
  .auth__glow i:nth-child(1) { width: 380px; height: 380px; right: -140px; top: -120px; background: #20b8cd; animation: drift 14s ease-in-out infinite alternate; }
  .auth__glow i:nth-child(2) { width: 340px; height: 340px; left: -120px; bottom: -140px; background: #7c5cff; animation: drift 12s ease-in-out -4s infinite alternate-reverse; }
  .auth__panel { padding: 16px 48px 28px; }
  .auth__panel::before, .auth__panel::after { opacity: .35; }
}
