body { background: #999; }

.login::before { content: none; }

.login {
  background: #fff;
  z-index: 20;
  max-width: none;
  left: 0;
  transform: none;
}

.login > .brand {
  position: fixed;
  inset: auto;
  left: 50%;
  top: calc(50% - 64px);
  width: min(calc(100vw - 64px), 448px);
  height: auto;
  transform: translate(-50%, -50%);
  display: block;
  overflow: visible;
  pointer-events: none;
}

.login > .brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: brightness(.6);
}

.topbar .brand img {
  object-fit: contain;
  mix-blend-mode: normal;
}

.factory-home-logo {
  position: fixed;
  inset: 0;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px 128px;
  background: #999;
  pointer-events: none;
}

.factory-home-logo img {
  display: block;
  width: 100%;
  max-width: 448px;
  height: auto;
  transform: translateY(-21px);
  filter: brightness(.6);
}

.factory-home-logo h1,
.factory-home-logo div { display: none; }

/* Exact Factory app component language for the Site workflow. */
html, body {
  min-height: 100%;
  background: #f5f5f4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.shell { background: #f5f5f4; font-family: ui-sans-serif, system-ui, sans-serif; }

.login {
  padding: 16px 16px max(24px, env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}

.tabs { gap: 6px; margin-bottom: 16px; padding: 4px; background: #f5f5f5; }
.tabs button { padding: 8px 0; font-size: 12px; line-height: 16px; font-weight: 600; }
.tabs button.active { color: #0f172a; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.login-title { gap: 8px; margin-bottom: 12px; font-size: 14px; line-height: 20px; color: #262626; }
.login-title .person {
  width: 16px;
  height: 16px;
  overflow: hidden;
  color: transparent;
  background: no-repeat center/16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23155e75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.login label { gap: 4px; margin-bottom: 12px; font-size: 12px; line-height: 16px; color: #525252; }
.login form > label:not(.remember) { margin-bottom: 8px; }
.login input { height: 41.3333px; min-height: 41.3333px; padding: 10px 12px; border-color: #e5e5e5; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 400; }
.login .remember { display: flex !important; height: 16px; align-items: center; gap: 8px !important; margin: 0 0 12px !important; padding: 0; font-weight: 600; }
.login .remember input { flex: 0 0 14px; width: 14px; height: 14px; min-height: 14px; margin: 0; padding: 0; }
.login .primary { display: block; box-sizing: border-box; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 12px 0; border-radius: 8px; background: #155e75; font-size: 14px; line-height: 20px; font-weight: 600; }
.login-help { margin-bottom: 12px; font-size: 12px; line-height: 16px; color: #a3a3a3; }

.topbar {
  padding: max(20px, env(safe-area-inset-top)) 16px 16px;
  background: #f5f5f4;
  border-color: #e5e5e5;
  box-shadow: none;
}
.topbar .brand { gap: 12px; }
.topbar .brand img { width: auto; height: 96px; }
.topbar .brand h1 { font-size: 14px; line-height: 20px; font-weight: 700; }
.topbar .brand small { font-size: 12px; line-height: 16px; color: #737373; }
.topbar > button { color: #155e75; font-size: 12px; font-weight: 600; }

.content { max-width: none; padding: 16px; }
.toolbar { margin-bottom: 12px; }
.toolbar h2 { font-size: 18px; line-height: 28px; font-weight: 700; }
.toolbar small { font-size: 12px; line-height: 16px; color: #737373; }
.card { padding: 16px; border-color: #e5e5e5; border-radius: 12px; box-shadow: none; }
.card label { font-size: 12px; color: #525252; }
.card input, .card select, .card textarea { border-color: #e5e5e5; border-radius: 8px; font-size: 14px; font-weight: 400; }
.card button, .toolbar button { border-radius: 8px; font-size: 12px; font-weight: 700; }
.primary { background: #155e75; border-color: #155e75; }
.notice { border-radius: 8px; font-size: 12px; }
.order { padding: 12px 0; }
.order strong { font-size: 14px; }
.order small { font-size: 12px; }
.success-pill { color: #166534; }
.settings-actions { margin-top: 16px; }

.bottom-nav { border-color: #e5e5e5; background: #fff; }
.bottom-nav button { padding: 16px 4px; gap: 6px; color: #737373; background: #fff; font-size: 12px; }
.bottom-nav button.active { color: #155e75; }
.nav-icon { font-size: 20px; }
.nav-svg { display: block; width: 20px; height: 20px; }
