@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; min-width: 0; }
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(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); width: 100%; }
@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; overflow: hidden; padding: 26px 0 28px; width: min(100%, 420px); }
.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; min-width: 0; padding: 0 22px; width: 100%; }
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; display: block; font: 600 18px "Noto Sans SC", sans-serif; min-height: 52px; max-width: 100%; outline: none; padding: 0 14px; width: 100%; }
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; max-width: 100%; min-height: 50px; min-width: 0; overflow-wrap: anywhere; width: 100%; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #e6bf91; outline-offset: 3px; }
.share-button { background: transparent; border: 1px solid #897f70; color: #e8dac4; display: block; margin: 12px 22px 0; max-width: calc(100% - 44px); width: calc(100% - 44px); }
.share-button:hover, .share-button:focus-visible { border-color: #d2a46c; color: #fff2d8; }
.share-status { color: #d2a46c; font-size: 11px; min-height: 16px; margin: 7px 22px 0; text-align: center; }
.share-guide { background: rgba(8, 8, 9, .76); position: fixed; inset: 0; z-index: 20; }
.share-guide[hidden] { display: none; }
.share-guide-arrow { color: #fff2d8; font: 800 66px/1 Arial, sans-serif; position: absolute; right: 30px; top: max(32px, env(safe-area-inset-top)); transform: rotate(-8deg); }
.share-guide-card { background: #8c3030; border: 1px solid #e1c28c; border-radius: 10px; color: #fff2d8; display: grid; gap: 4px; padding: 12px 14px; position: absolute; right: 16px; top: calc(max(32px, env(safe-area-inset-top)) + 78px); width: min(230px, calc(100% - 32px)); }
.share-guide-card strong { font-size: 15px; }
.share-guide-card span, .share-guide-card small { color: #fff2d8; font-size: 12px; margin: 0; }
.share-guide-card button { background: transparent; border: 1px solid rgba(255, 242, 216, .7); border-radius: 6px; color: #fff2d8; font: 700 12px "Noto Sans SC", sans-serif; min-height: 36px; margin-top: 6px; padding: 6px 10px; width: max-content; }
.error { color: #f1a7a1; font-size: 13px; margin: 0; }
small { color: #a99d8d; display: block; font-size: 12px; margin: 18px 22px 0; }
.filing-link { color: #8f8577; display: block; font-size: 11px; margin: 14px 22px 0; text-align: center; text-decoration: none; }
.filing-link:hover, .filing-link:focus-visible { color: #d2a46c; text-decoration: underline; }

@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, small { margin-left: 18px; margin-right: 18px; }
  form { margin-left: 18px; margin-right: 18px; padding-left: 0; padding-right: 0; width: auto; }
}

@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; }
  .share-button { margin-left: 18px; margin-right: 18px; width: calc(100% - 36px); }
  .share-status { margin-left: 18px; margin-right: 18px; }
  .filing-link { 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; }
}

html.preview-mode { background: #d8d4cc; }
html.preview-mode body { background: #d8d4cc; display: grid; min-height: 100%; place-items: center; }
html.preview-mode .login-shell { background: #111112 url("/assets/quiz/film-room-texture.png") center / cover; border: 12px solid #1b1b1d; border-radius: 48px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); height: min(844px, calc(100vh - 32px)); max-width: 390px; overflow: hidden; padding: 22px 12px; position: relative; width: min(390px, calc(100vw - 32px)); }
html.preview-mode .login-shell::before { background: #050505; border-radius: 99px; content: ""; height: 25px; left: 50%; position: absolute; top: 7px; transform: translateX(-50%); width: 112px; z-index: 2; }
html.preview-mode .login-card { max-height: 100%; overflow-y: auto; }
html.preview-mode .login-card,
html.preview-mode form,
html.preview-mode input,
html.preview-mode button { max-width: 100%; }
