[hidden] { display: none !important; }

#admin-menu-link { color: #1677ff; text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
#admin-menu-link:hover { background: #e6f4ff; }
#admin-menu-link:focus-visible { outline: 3px solid #1677ff; outline-offset: 2px; }

.auth-panel { max-width: 400px; margin: 48px auto; }
.auth-card {
  padding: 24px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.auth-card h2 { margin-top: 12px; }
.auth-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.auth-card label { display: block; margin: 16px 0 6px; font-size: 14px; }
.auth-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bfbfbf;
  border-radius: 8px;
  font: inherit;
}
.auth-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #1677ff;
  color: white;
  font: inherit;
  cursor: pointer;
}
.auth-card button:disabled { opacity: 0.65; cursor: default; }
#auth-message { margin: 16px 0 0; color: #595959; line-height: 1.6; }
.auth-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.auth-toolbar { flex-wrap: wrap; }
#authenticated-employee { margin-right: auto; }
.language-switch { display: flex; gap: 4px; }
.account-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.auth-toolbar .language-switch button { padding: 6px 9px; min-width: 42px; font-size: 23px; line-height: 1; }
.language-switch button[aria-pressed="true"] { background: #e6f4ff; border-color: #1677ff; box-shadow: inset 0 0 0 1px #1677ff; }
.language-switch svg { display: block; width: 28px; height: 20px; border: 1px solid #ccd5de; border-radius: 2px; }
.auth-toolbar span { min-width: 0; font-size: 13px; color: #595959; overflow-wrap: anywhere; }
.auth-toolbar button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: white;
  color: #595959;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.auth-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 14px;
}

.auth-panel[data-state="loading"] .auth-card {
  text-align: center;
  padding: 32px 24px;
}

.auth-panel[data-state="loading"] .auth-card p {
  margin: 16px 0 0;
  color: #595959;
  line-height: 1.6;
}

/* Keep mobile text proportional when Safari changes orientation. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 1023px) {
  input, select, textarea { font-size: max(16px, 1em) !important; }
}
