:root {
  color-scheme: light;
  --paper: #f7f7fc; --ink: #171824; --muted: #626377; --line: #dedee8;
  --accent: #635bff; --danger: #b42332; --danger-hover: #941b28;
  background: var(--paper); color: var(--ink);
}
body.account-page { min-height: 100svh; background: var(--paper); font-size: 16px; line-height: 1.65; }
.account-shell { max-width: 1240px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 48px) 32px; }
.account-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.account-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.account-brand img { display: block; width: 44px; height: 44px; object-fit: contain; }
.account-brand span { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.055em; }
.account-languages { display: flex; flex-wrap: wrap; gap: 4px; }
.account-languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; font-size: 14px; color: var(--muted); text-decoration: none; }
.account-languages a[aria-current=page] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.account-layout { max-width: none; margin: clamp(24px, 5vw, 64px) 0 32px; }
.account-layout-login { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.account-intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4vw, 48px); color: #f7f7fc; background: #171824; border-radius: 19px 0 0 19px; }
.account-intro h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; letter-spacing: -.045em; margin: 24px 0; overflow-wrap: anywhere; }
.account-intro p { color: #d4d4e0; margin: 0; }
.account-intro .account-steps { margin-top: 40px; font-size: 14px; }
.account-card { width: 100%; max-width: 560px; min-width: 0; margin: 0 auto; padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.account-layout-login .account-card { max-width: none; border: 0; border-radius: 0 19px 19px 0; padding: clamp(28px, 4vw, 48px); }
.account-eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.5; }
.account-card h1 { margin: 0 0 16px; font-size: clamp(25px, 3vw, 32px); letter-spacing: -.04em; line-height: 1.35; overflow-wrap: anywhere; }
.account-card h2 { margin: 28px 0 12px; font-size: 21px; line-height: 1.45; overflow-wrap: anywhere; }
.account-card p { margin: 0 0 20px; overflow-wrap: anywhere; }
.account-copy { color: var(--muted); }
.account-help { color: var(--muted); font-size: 14px; line-height: 1.65; }
.account-form { display: grid; gap: 24px; margin: 24px 0 0; }
.account-field { min-width: 0; }
.account-field label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.account-field input { display: block; width: 100%; min-width: 0; min-height: 52px; border: 1px solid #b8b8c7; border-radius: 8px; padding: 12px 14px; background: #fff; color: var(--ink); font: inherit; }
.account-field .account-help { margin: 8px 0 0; }
.account-notice { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow-wrap: anywhere; }
.account-notice p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.account-alert { padding: 16px; color: #8d1928; border: 1px solid #e2aab2; border-radius: 8px; background: #fff4f5; }
.social-stack { display: grid; gap: 12px; margin: 28px 0; }
.social-form { margin: 0; }
button { font: inherit; cursor: pointer; }
.social-button, .account-primary, .account-card form > button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; text-align: center; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; background: var(--accent); color: #fff; }
.social-button span { min-width: 0; }
.social-google, .account-card form > .social-google { background: #fff; border-color: #747775; color: #1f1f1f; }
.social-google img { width: 20px; height: 20px; flex-shrink: 0; }
.social-kakao, .account-card form > .social-kakao { padding: 4px 12px; background: #fee500; color: #191919; }
.social-kakao img { display: block; width: 224px; height: 46px; max-width: 100%; object-fit: contain; }
.account-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.account-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.deletion-confirm { display: grid; gap: 24px; margin-top: 28px; }
.deletion-confirm label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 4px 0; cursor: pointer; }
.deletion-confirm input[type=checkbox] { width: 22px; height: 22px; margin: 3px 0 0; flex: 0 0 22px; accent-color: var(--danger); }
.account-card .button-danger, .account-card form > .button-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.account-card .button-danger:hover { background: var(--danger-hover); }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.deletion-confirm input:focus-visible, .button-danger:focus-visible { outline-color: var(--danger); }
@media(max-width: 760px) {
  .account-layout-login { display: block; border: 0; background: transparent; }
  .account-intro { display: none; }
  .account-layout-login .account-card { max-width: 560px; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
}
@media(max-width: 380px) {
  .account-shell { padding: 20px 16px; }
  .account-header { gap: 8px; }
  .account-languages a { padding-inline: 6px; font-size: 13px; }
  .account-card, .account-layout-login .account-card { padding: 24px 20px; }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* Compatibility deletion route retains the same destructive color. */
.deletion-confirm .button-danger { background: var(--danger); color: #fff; border: 1px solid var(--danger); border-radius: 8px; padding: 12px 20px; min-height: 52px; }
