/* ==========================================================================
   GLOW ACCOUNT — 외부 서비스 로그인(OIDC) 화면 전용
   MY GLOW / 새 홈과 같은 디자인 언어(색·Pretendard·mono 라벨·버튼)를 쓰되
   myglow.css 에 의존하지 않도록 필요한 토큰만 여기서 정의한다. 모든 선택자는 ga- 접두사.
   ========================================================================== */
.ga {
  --glow-900: #1c3527; --glow-700: #244331; --glow-600: #305d43; --glow-100: #e3eee7; --glow-50: #f4f9f6;
  --ink: #17211b; --muted: #56625a; --line: #d6e2da; --line-2: #c3d2c8; --paper: #fff;
  --warn: #8a5a12; --warn-bg: #fbf4e6; --danger: #9b2c2c;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
      "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px; --radius-sm: 8px;
}
.ga, .ga *, .ga *::before, .ga *::after { box-sizing: border-box; }
body.ga {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--glow-50); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
.ga :where(h1, p, ul, form) { margin: 0; }
.ga :where(ul) { padding: 0; list-style: none; }
.ga :focus-visible { outline: 2px solid var(--glow-600); outline-offset: 2px; border-radius: 4px; }

.ga-top { padding: 22px clamp(16px, 5vw, 40px); }
.ga-logo { display: inline-flex; color: var(--glow-900); text-decoration: none; }
.ga-logo-mark {
  display: block; width: 92px; height: 24px; background-color: currentColor;
  -webkit-mask: url("/images/logos/logoWhite.png") center / contain no-repeat;
          mask: url("/images/logos/logoWhite.png") center / contain no-repeat;
}
.ga-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px 64px; }
.ga-card {
  width: 100%; max-width: 440px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px; box-shadow: 0 1px 2px rgba(23, 33, 27, .04);
}
.ga-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--glow-600);
}
.ga-label::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7; }
.ga-title { margin-top: 14px; font-size: 21px; line-height: 1.45; font-weight: 700; letter-spacing: -.02em; color: var(--glow-900); }
.ga-title strong { color: var(--glow-600); }
.ga-text { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.ga-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.ga-acct {
  margin-top: 22px; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glow-50);
}
.ga-avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--glow-600);
}
.ga-acct-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.ga-acct-mail { color: var(--muted); font-size: 13px; line-height: 1.35; }

.ga-scopes { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.ga-scopes-h { font-size: 13px; font-weight: 600; color: var(--muted); }
.ga-scopes ul { margin-top: 8px; display: grid; gap: 6px; }
.ga-scopes li { position: relative; padding-left: 18px; font-size: 14.5px; }
.ga-scopes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--glow-600); }

.ga-alert { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); font-size: 14px; }

.ga-actions { margin-top: 26px; display: grid; gap: 10px; }
.ga-actions form { display: contents; }
.ga-btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 48px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  color: #fff; background: var(--glow-600); border: 1px solid var(--glow-600);
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.ga-btn:hover { background: var(--glow-700); border-color: var(--glow-700); }
.ga-btn--ghost { color: var(--glow-900); background: transparent; border-color: var(--line-2); }
.ga-btn--ghost:hover { background: var(--glow-50); border-color: var(--glow-600); }
.ga-sub { margin-top: 16px; text-align: center; font-size: 13.5px; }
.ga-sub a { color: var(--glow-600); font-weight: 600; text-decoration: none; }
.ga-sub a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ga-foot { padding: 0 16px 28px; text-align: center; font-size: 12.5px; color: var(--muted); }

@media (max-width: 480px) {
  .ga-card { padding: 26px 20px 22px; border-radius: 10px; }
  .ga-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .ga * { transition: none !important; } }
