/* 바야 톡 새 디자인 — 로그인 · 가입 화면 (대표 지시 2026-11-22)
 *
 * 시안 꾸러미의 auth-chat/connect-auth-theme.css 를 그대로 옮긴 것입니다.
 * 바꾼 곳은 그림 주소 한 곳뿐입니다 — assets/church-evening.webp → /static/design/church-evening.webp
 *
 * ⚠ 모든 규칙이 #auth 안에만 있습니다. 로그인 전 화면에만 닿고 다른 화면에는 번지지 않습니다.
 * ⚠ 겉모습만입니다 — 칸 이름(church·login·password·invite·otp), 칸 차례, 자동 완성,
 *    필수 검사, 서버 응답, 비밀번호 보기 단추, 교회별 가입 정책은 하나도 바뀌지 않습니다.
 * ⚠ 「저녁 교회」 그림은 설명용으로 만든 그림입니다. 예배교회 건물 사진이 아닙니다.
 */

#auth.auth-layout {
  /* 홈·내정보와 같은 아이보리로 맞췄습니다 (대표 2026-11-23 「맞춰라」).
     시안 꾸러미의 회청색(#f4f7fa·#192c39·#21466b)은 홈 시안보다 먼저 만들어진 것이라,
     로그인에서 홈으로 넘어갈 때 바탕색이 바뀌어 보였습니다. */
  --talk-paper: #fbf8f3;
  --talk-ink: #142538;
  --talk-blue: #16283c;
  background: var(--talk-paper);
  color: var(--talk-ink);
}

#auth .welcome {
  background-color: #192b38;
  background-image: linear-gradient(0deg, #10273df5, #142c45ad 25%, transparent 66%),
    url("/static/design/church-evening.webp");
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
  color: #fffaf0;
}

#auth .welcome h1 {
  color: #fff6e4;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

#auth .welcome p {
  color: #f3ede2;
  line-height: 1.75;
}

#auth .auth-panel,
#auth .auth-card {
  background: var(--talk-paper);
  color: var(--talk-ink);
}

#auth .auth-card .brand b { color: var(--talk-blue); }

#auth .auth-card .muted,
#auth .brand-tagline { color: #53616d; }

#auth #auth-title {
  letter-spacing: -0.05em;
  color: var(--talk-ink);
}

#auth #login-form label { color: #243546; }

#auth #login-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  min-height: 46px;
  border: 1px solid #ded4c5;
  border-radius: 7px;
  background: #fffdf9;
  color: #142538;
  font-size: 16px;
}

#auth #auth-submit {
  min-height: 48px;
  justify-content: center;
  border-radius: 7px;
  background: #16283c;
  color: #fff7e8;
  text-align: center;
}

#auth .text-button {
  min-height: 42px;
  color: #34516a;
}

#auth :is(button, input, a):focus-visible {
  outline: 3px solid #a27030;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  #auth .auth-card { max-width: 100%; }
  #auth .auth-panel { padding-inline: clamp(14px, 5vw, 26px); }
  /* 휴대폰에서는 글이 감춰져 있어 띠가 아주 얇았습니다(그림이 거의 안 보임).
     그림이 보이도록 높이만 줍니다. 글을 다시 켜지는 않습니다. */
  #auth .welcome {
    min-height: 168px;
    padding-top: max(24px, env(safe-area-inset-top));
  }
}

/* ⚠ 2026-11-30 — 가입 화면에서만 머리를 낮춥니다.
 *
 * 새 디자인의 머리(그림 띠 + 로고 + 제목 + 설명 한 줄)가 지금 화면보다 **118px 높습니다.**
 * 그만큼 아래가 밀려, 360×740 갤럭시에서 **동의 첫 줄이 756px** — 첫 화면(740px) 밖이었습니다.
 * 그러면 11/27 에 대표가 「동의 체크 화면이 없는데」 하신 모습으로 그대로 돌아갑니다(4-44 D).
 * 체크를 안 하면 브라우저는 **아무 글도 없이** 멈추므로, 보이지 않는 동의는 조용한 고장입니다.
 *
 * 그래서 **가입할 때만**(`body.joining`) 그림 띠를 낮추고 설명 한 줄을 접습니다.
 * 로그인 화면은 그대로입니다 — 거기에는 동의 칸이 없습니다.
 * 시험 `tests/join-ui.test.cjs` ⑧ 이 360×740·390×844 에서 자리를 잽니다.
 */
@media (max-width: 700px) {
  body.joining #auth .welcome { min-height: 104px; }
  body.joining #auth .auth-card > p.muted { display: none; }
}
