/* W-02 전용. 토큰은 /style.css(B안) 그대로, 여기에는 이 화면에만 있는 값만 둔다. */
:root {
  --danger: #B91C1C;      /* red */
  --danger-soft: #FDE8E6; /* redSoft */
  --hairline: #DDE5DD;    /* mist */
}

.step { display: flex; flex-direction: column; gap: var(--section-gap); }
h1:focus { outline: none; }
h2 { margin: 0; font-size: var(--body); font-weight: 700; line-height: 1.3; }
ul, ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }

button { font: inherit; cursor: pointer; border: 0; margin: 0; }
.btn { width: 100%; min-height: 56px; }
.btn.danger { background: var(--surface); color: var(--danger); border: 2px solid var(--danger); }
.btn.danger:active { background: var(--danger-soft); }

/* 한 줄 안내: 실패(amber, 경고 아이콘) / 정보 */
.line { padding: 12px 16px; border-radius: var(--radius-input); font-size: var(--body-small); }
.fail-line { background: var(--late-soft); color: var(--late-ink); font-weight: 700; }
.fail-line::before { content: "⚠ "; }
.info-line { background: var(--surface); border: 1px solid var(--hairline); }
.info-line::before { content: "ⓘ "; color: var(--primary); }

/* 로그인 버튼(정의서 8-9, G-01): 56px, 모서리 12, 공식 이미지·색 그대로 */
.logins { display: flex; flex-direction: column; gap: 12px; }
.login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
}
.login:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.img-login img { display: block; max-width: 100%; height: 56px; object-fit: contain; }
.apple-login {
  gap: 12px;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: var(--body-small);
  font-weight: 500;
  line-height: 1.3;
}
.apple-login .logo { position: relative; display: inline-flex; width: 24px; height: 24px; justify-content: center; }
.apple-login .logo img { width: 19px; height: 24px; }

/* 로딩: 누른 버튼의 로고 자리에만 회전 표시. 다른 버튼은 흐리게 하지 않는다 */
.spin { display: none; width: 24px; height: 24px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.login[aria-busy="true"] .spin { display: block; }
.img-login .spin { position: absolute; left: 10%; top: 16px; color: #000; background: inherit; }
.apple-login[aria-busy="true"] .logo img { visibility: hidden; }
.apple-login .spin { position: absolute; inset: 0; }
.spin.big { display: block; width: 48px; height: 48px; color: var(--primary); align-self: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.box { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-input); }
.actions { display: flex; flex-direction: column; gap: 24px; }

.care { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-input); }

.check { width: 72px; height: 72px; }

footer.foot { position: static; padding-top: 0; font-size: var(--body-small); }
.foot a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.foot a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* 아직 채우지 않은 칸. 게시 전에 없어져야 한다 */
.todo { background: var(--late-soft); color: var(--late-ink); font-weight: 700; padding: 0 6px; border-radius: 6px; }

/* ④ 확인 창 */
dialog {
  width: calc(100% - 2 * var(--gutter));
  max-width: 480px;
  padding: var(--gutter);
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop { background: rgba(15, 27, 45, .45); }
dialog[open] { display: flex; flex-direction: column; gap: 16px; }
dialog h2 { font-size: var(--title); }
