@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,800&family=Noto+Sans+SC:wght@400;600;700&display=swap");

* { box-sizing: border-box; }
html { background: #111112; height: 100%; }
body { background: #111112 url("/assets/quiz/film-room-texture.png") center / cover; color: #eee3cf; font-family: "Noto Sans SC", system-ui, sans-serif; margin: 0; min-height: 100%; }
.login-shell { align-items: center; display: flex; height: 100svh; justify-content: center; min-height: 0; overflow: hidden; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
@supports (height: 100dvh) { .login-shell { height: 100dvh; } }
.login-card { background: rgba(17, 17, 18, .9); border-bottom: 1px solid #8c3030; border-top: 1px solid #8c3030; max-width: 420px; padding: 26px 0 28px; width: 100%; }
.brand-lockup { align-items: center; border-bottom: 1px solid #725a51; display: flex; gap: 10px; padding: 0 22px 18px; }
.brand-lockup img { background: #eee3cf; border: 1px solid #a43b41; border-radius: 50%; height: 38px; object-fit: cover; width: 38px; }
.brand-lockup span, h1 { font-family: "Barlow Condensed", "Noto Sans SC", sans-serif; font-weight: 800; letter-spacing: .07em; }
.brand-lockup span { font-size: clamp(18px, 6vw, 23px); font-style: italic; line-height: 1; }
.eyebrow { color: #bd7773; font: 700 12px "Barlow Condensed", sans-serif; letter-spacing: .15em; margin: 23px 22px 7px; }
h1 { font-size: clamp(30px, 9vw, 38px); margin: 0 22px 7px; }
.intro { color: #d7ccb9; font-size: 14px; line-height: 1.6; margin: 0 22px 24px; }
form { display: grid; gap: 9px; padding: 0 22px; }
label { color: #bd7773; font: 700 12px "Barlow Condensed", "Noto Sans SC", sans-serif; letter-spacing: .12em; }
input { background: #141415; border: 1px solid #897f70; border-radius: 7px; color: #fff2d8; font: 600 18px "Noto Sans SC", sans-serif; min-height: 52px; outline: none; padding: 0 14px; }
input:focus { border-color: #d2a46c; box-shadow: 0 0 0 2px rgba(210, 164, 108, .17); }
button { background: #8c3030; border: 0; border-radius: 7px; color: #fff2d8; cursor: pointer; font: 700 15px "Noto Sans SC", sans-serif; margin-top: 6px; min-height: 50px; }
button:disabled { cursor: wait; opacity: .65; }
.error { color: #f1a7a1; font-size: 13px; margin: 0; }
small { color: #a99d8d; display: block; font-size: 12px; margin: 18px 22px 0; }

@media (max-width: 480px) {
  .login-shell { padding-left: 14px; padding-right: 14px; }
  .login-card { max-height: calc(100svh - 24px); overflow-y: auto; padding-top: 16px; padding-bottom: 18px; }
  @supports (height: 100dvh) { .login-card { max-height: calc(100dvh - 24px); } }
  .brand-lockup { gap: 8px; padding-left: 18px; padding-right: 18px; }
  .brand-lockup img { height: 34px; width: 34px; }
  .eyebrow { margin-left: 18px; margin-right: 18px; }
  h1, .intro, form, small { margin-left: 18px; margin-right: 18px; }
  form { padding-left: 0; padding-right: 0; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .login-shell { padding-top: 8px; padding-bottom: 8px; }
  .login-card { max-height: calc(100svh - 16px); overflow-y: auto; padding-top: 12px; padding-bottom: 12px; }
  @supports (height: 100dvh) { .login-card { max-height: calc(100dvh - 16px); } }
  .eyebrow { margin-top: 14px; }
  .intro { margin-bottom: 14px; }
  small { margin-top: 10px; }
}

@media (max-height: 700px) and (orientation: portrait) {
  .login-shell { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
  .login-card { max-height: calc(100svh - 20px); padding-top: 14px; padding-bottom: 14px; }
  @supports (height: 100dvh) { .login-card { max-height: calc(100dvh - 20px); } }
  .brand-lockup { padding-bottom: 12px; }
  .eyebrow { margin-top: 14px; margin-bottom: 5px; }
  .intro { margin-bottom: 16px; }
  form { gap: 7px; }
  input { min-height: 48px; }
  button { min-height: 46px; }
  small { margin-top: 10px; }
}
