/* The sign-in page is separate from the staff workspaces and guest ordering. */
body.staff-login-required { background: #f2f0e9; color: #292e2b; }
body.staff-login-required .app-shell { display: block; min-height: 100vh; min-height: 100dvh; }
body.staff-login-required .sidebar,
body.staff-login-required .topbar,
body.staff-login-required #adminView > .section-title { display: none; }
body.staff-login-required .workspace {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(32px + var(--app-safe-top)) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
}
body.staff-login-required #adminView { width: 100%; max-width: 1080px; margin: 0; }
body.staff-login-required #managementShell { margin: 0; }
.staff-signin {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: 610px;
  background: #fffefa;
  border: 1px solid #e4e0d7;
  border-radius: 24px;
  box-shadow: 0 18px 70px #29251b0d;
  overflow: hidden;
}
.signin-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  padding: 42px;
  background: #262e29;
  color: #f7f2e8;
}
.signin-wordmark { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; font-weight: 600; }
.signin-seal { display: grid; place-items: center; flex: 0 0 48px; height: 52px; border: 1px solid #c5654d; border-radius: 5px; background: #a73d2a; color: #fff3dd; font-family: "Yu Mincho", "Noto Serif CJK SC", "Songti SC", serif; font-size: 30px; }
.signin-brand-copy { position: relative; z-index: 1; margin: auto 0; }
.signin-brand-rule { display: block; width: 36px; height: 2px; margin-bottom: 24px; background: #d1ae72; }
.signin-brand-copy h1 { font-family: "Yu Mincho", "Noto Serif CJK SC", "Songti SC", serif; font-weight: 600; font-size: clamp(40px, 4.9vw, 64px); line-height: 1.35; letter-spacing: .08em; overflow-wrap: anywhere; }
.signin-brand-copy p { margin: 18px 0 0; color: #c7cabe; font-size: 16px; line-height: 1.8; }
.signin-brand-footer { position: relative; z-index: 1; display: grid; gap: 18px; font-size: 12px; line-height: 1.8; color: #c1c7bb; }
.signin-brand-footer > span:last-child { font-size: 10px; color: #9ea996; letter-spacing: .15em; }
.signin-rings { position: absolute; z-index: -1; right: -160px; bottom: -145px; width: 420px; height: 420px; border: 1px solid #b8b8a22b; border-radius: 50%; box-shadow: 0 0 0 40px #b8b8a20a, 0 0 0 80px #b8b8a208; pointer-events: none; }
.signin-main { min-width: 0; display: flex; flex-direction: column; padding: 28px 48px 26px; }
.signin-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #676e64; font-size: 12px; }
.signin-language { display: flex; align-items: center; gap: 5px; }
.signin-language svg { width: 18px; height: 18px; }
.signin-language select { width: auto; min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: #333c32; padding: 8px 4px; font-size: 14px; cursor: pointer; }
.signin-form-wrap { width: 100%; max-width: 390px; margin: auto; padding: 34px 0; }
.signin-eyebrow { margin: 0 0 12px; color: #a34630; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.signin-form-wrap h2 { margin: 0; font-size: 32px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.signin-subtitle { margin: 12px 0 30px; color: #73796e; font-size: 14px; line-height: 1.7; }
.signin-form { display: grid; gap: 20px; }
.signin-field { display: grid; gap: 9px; min-width: 0; }
.signin-field > label { color: #42493f; font-size: 14px; font-weight: 600; }
.signin-field input { width: 100%; min-width: 0; height: 56px; border: 1px solid #dcded4; border-radius: 10px; background: #fffefa; color: #292e2b; padding: 0 16px; font-size: 18px; box-shadow: none; }
.signin-field input::placeholder { color: #93998d; font-size: 15px; opacity: 1; }
.signin-field input:focus { outline: 2px solid #b98a53; outline-offset: 2px; border-color: #b98a53; }
.signin-field input[aria-invalid="true"] { border-color: #a73d2a; }
.signin-pin-control { position: relative; min-width: 0; }
.signin-pin-control input { padding-right: 74px; }
.signin-pin-control button { position: absolute; right: 4px; top: 6px; min-width: 62px; min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: #686e62; font-size: 13px; cursor: pointer; }
.signin-pin-control button:hover { background: #f2f0e9; }
.signin-submit { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 56px; margin-top: 4px; padding: 12px 20px; border: 0; border-radius: 10px; background: #a73d2a; color: #fff; font-size: 17px; font-weight: 650; cursor: pointer; transition: background-color 120ms ease; }
.signin-submit:hover { background: #8b3021; }
.signin-submit-arrow { font-size: 23px; line-height: 1; font-weight: 400; }
.signin-submit:disabled { cursor: wait; background: #936052; color: #fff; opacity: 1; }
.signin-form[aria-busy="true"] .signin-submit-arrow { visibility: hidden; }
.signin-main button:focus-visible, .signin-language select:focus-visible { outline: 2px solid #b98a53; outline-offset: 3px; }
.signin-error { margin: 0; padding: 12px 14px; border-radius: 8px; background: #fcf0eb; color: #9c3424; font-size: 14px; line-height: 1.6; }
.signin-error[hidden] { display: none; }
.signin-help { margin: 22px 0 0; color: #757b6f; font-size: 12px; line-height: 1.7; }
.signin-footer { border-top: 1px solid #e8e7df; padding-top: 18px; color: #7a8074; font-size: 12px; line-height: 1.7; }
@media (max-width: 900px) {
  .signin-brand { padding: 32px; }
  .signin-main { padding: 24px 32px; }
}
@media (max-width: 700px) {
  body.staff-login-required .workspace { padding: calc(20px + var(--app-safe-top)) max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  body.staff-login-required #adminView { max-width: 480px; }
  .staff-signin { display: block; min-height: 0; border-radius: 18px; }
  .signin-brand { flex-direction: row; align-items: center; gap: 16px; padding: 22px 24px; }
  .signin-wordmark { flex-shrink: 0; }
  .signin-wordmark > span:last-child, .signin-brand-rule, .signin-brand-copy p, .signin-brand-footer { display: none; }
  .signin-brand-copy { margin: 0; flex: 1; }
  .signin-brand-copy h1 { font-size: 29px; }
  .signin-main { padding: 16px 24px 22px; }
  .signin-form-wrap { padding: 26px 0 30px; }
  .signin-form-wrap h2 { font-size: 29px; }
  .signin-subtitle { margin-bottom: 24px; }
}
@media (max-height: 700px) and (min-width: 701px) {
  body.staff-login-required .workspace { padding-top: calc(16px + var(--app-safe-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .staff-signin { min-height: 540px; }
  .signin-form-wrap { padding: 24px 0; }
  .signin-subtitle { margin-bottom: 22px; }
}
