/* Guest screens only. Authenticated dashboard styles remain unchanged. */
#admin-lockscreen,
#auth-modal,
#auth-screen {
  box-sizing: border-box;
  background: #f7f7f8;
  color: #202124;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 24px 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#admin-lockscreen {
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#admin-lockscreen .plain-auth-card,
#auth-modal .auth-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  box-shadow: none;
  text-align: left;
}

#admin-lockscreen .plain-auth-title,
#auth-modal .auth-title,
#auth-screen .auth-title {
  margin: 0 0 8px;
  background: none;
  color: #202124;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

#admin-lockscreen .plain-auth-description,
#auth-modal .auth-desc,
#auth-screen .auth-sub {
  margin: 0 0 24px;
  color: #5f6368 !important;
  font-size: 14px;
  line-height: 1.6;
}

#admin-lockscreen .plain-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#admin-lockscreen label {
  font-size: 14px;
  font-weight: 500;
}

#admin-lockscreen input {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #9aa0a6;
  border-radius: 4px;
  color: #202124;
  font: inherit;
  box-shadow: none;
}

#admin-lockscreen input:focus-visible,
#admin-lockscreen button:focus-visible,
#auth-modal a:focus-visible,
#auth-modal button:focus-visible {
  outline: 2px solid #5f6368;
  outline-offset: 3px;
}

#admin-lockscreen button {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  background: #303134;
  border: 1px solid #303134;
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-weight: 500;
  box-shadow: none;
  transform: none;
}

#admin-lockscreen button:hover {
  background: #202124;
}

#admin-lockscreen button:disabled {
  opacity: 0.65;
  cursor: wait;
}

#admin-lockscreen #unlock-error {
  color: #b3261e;
  font-size: 13px;
  line-height: 1.5;
}

#auth-modal .auth-card::before,
#auth-modal .auth-badge,
#auth-modal #auth-icon-wrap,
#auth-screen .auth-icon {
  display: none;
}

#auth-modal .auth-loading-track,
#auth-screen .auth-bar {
  background: #e8eaed;
}

#auth-modal .auth-loading-indicator,
#auth-screen .auth-bar-fill {
  background: #80868b;
  box-shadow: none;
}

#auth-modal #auth-denied-actions .btn-ghost {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #303134;
  box-shadow: none;
}

#auth-modal #auth-denied-actions > div {
  background: #fce8e6 !important;
  border-color: #f6c7c4 !important;
  color: #b3261e !important;
}

#auth-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  min-height: 100vh;
}

@media (max-width: 420px) {
  #admin-lockscreen .plain-auth-card,
  #auth-modal .auth-card {
    padding: 24px;
  }
}
