/* Store Ops 2.0: login styles. Loaded after admin.css and base.css.
   Sign-in is open and card-free: the Store Ops mark, the title, a row of
   avatars with a ring that glides to the chosen one, and one PIN field with
   the arrow button inside it. "Use another account ID" reveals the account
   field. Without profiles (code-only sign-in) the account shows read-only. */

:root[data-admin-theme] body.is-login {
  min-height: 100svh;
  background: var(--so-panel);
  color: var(--so-ink);
}

:root[data-admin-theme] .is-login .admin-login-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 40px 20px 64px;
  overflow: hidden;
}

:root[data-admin-theme] .is-login .admin-login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 520px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-admin-theme] .is-login .admin-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: so-rise 0.7s var(--so-ease) both;
}

:root[data-admin-theme] .is-login .admin-login-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--so-ink);
  color: var(--so-panel);
}

:root[data-admin-theme] .is-login .admin-login-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
}

:root[data-admin-theme] .is-login .admin-login-brand h1 {
  margin: 0;
  color: var(--so-ink);
  font-family: var(--so-font);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
}

:root[data-admin-theme] .is-login .admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
}

/* Profiles: avatars with names; the chosen one is solid, the ring glides. */
:root[data-admin-theme] .is-login .admin-employee-login-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 14px;
  margin: 0 0 18px;
}

:root[data-admin-theme] .is-login .admin-employee-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 76px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--so-ink3);
  box-shadow: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
  animation: so-rise 0.6s var(--so-ease) both;
  animation-delay: calc(80ms + var(--tile-index, 0) * 50ms);
  transition: color 0.3s;
}

:root[data-admin-theme] .is-login .admin-employee-tile span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--so-card2);
  color: var(--so-ink2);
  font-size: 20px;
  font-weight: 650;
  transform: scale(0.92);
  transition: background-color 0.35s, color 0.35s, transform 0.45s var(--so-spring);
}

:root[data-admin-theme] .is-login .admin-employee-tile:hover span {
  transform: scale(0.97);
}

:root[data-admin-theme] .is-login .admin-employee-tile strong {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

:root[data-admin-theme] .is-login .admin-employee-tile.is-active {
  border: 0;
  color: var(--so-ink);
  box-shadow: none;
}

:root[data-admin-theme] .is-login .admin-employee-tile.is-active span {
  background: var(--so-ink);
  color: var(--so-panel);
  transform: none;
}

:root[data-admin-theme] .is-login .admin-employee-tile.is-active strong {
  font-weight: 600;
}

:root[data-admin-theme] .is-login .admin-employee-tile:focus-visible {
  outline: none;
}

:root[data-admin-theme] .is-login .admin-employee-tile:focus-visible span {
  outline: 2px solid var(--so-ink2);
  outline-offset: 6px;
}

.admin-employee-login-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  border: 2px solid var(--so-ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.admin-employee-login-ring.is-ready {
  transition: transform 0.55s var(--so-ease), opacity 0.3s;
}

.admin-employee-login-ring.is-on {
  opacity: 1;
}

/* Account field: read-only without profiles; behind a toggle with them. */
:root[data-admin-theme] .is-login .admin-login-account {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.45s var(--so-ease), opacity 0.3s, margin 0.45s var(--so-ease), visibility 0s;
}

:root[data-admin-theme] .is-login .admin-login-account.is-collapsed {
  max-height: 0;
  margin-bottom: -12px;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.45s var(--so-ease), opacity 0.2s, margin 0.45s var(--so-ease), visibility 0s linear 0.45s;
}

:root[data-admin-theme] .is-login .admin-login-form label {
  color: var(--so-ink2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

:root[data-admin-theme] .is-login .admin-login-form input {
  width: 100%;
  border: 1px solid var(--so-line2);
  border-radius: 999px;
  background: var(--so-card);
  color: var(--so-ink);
  box-shadow: none;
  outline: none;
  transition: border-color 0.25s;
}

:root[data-admin-theme] .is-login .admin-login-form input::placeholder {
  color: var(--so-ink3);
  letter-spacing: 0.02em;
}

:root[data-admin-theme] .is-login .admin-login-form input:focus {
  border-color: var(--so-ink2);
  box-shadow: none;
}

:root[data-admin-theme] .is-login .admin-login-account input {
  height: 50px;
  padding: 0 20px;
  font-family: var(--so-mono);
  font-size: 14px;
}

:root[data-admin-theme] .is-login .admin-login-account input[readonly] {
  color: var(--so-ink2);
}

:root[data-admin-theme] .is-login .admin-login-account.is-invalid input {
  border-color: var(--so-red);
}

/* PIN: one pill with the arrow button inside. */
:root[data-admin-theme] .is-login .admin-login-pin {
  position: relative;
  display: flex;
  align-items: center;
  animation: so-rise 0.7s var(--so-ease) 0.25s both;
}

:root[data-admin-theme] .is-login .admin-login-pin label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:root[data-admin-theme] .is-login .admin-login-pin input {
  flex: 1;
  height: 60px;
  padding: 0 70px 0 24px;
  font-size: 17px;
  letter-spacing: 0.08em;
}

:root[data-admin-theme] .is-login .admin-login-go {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--so-card2);
  color: var(--so-ink2);
  box-shadow: none;
  transition: background-color 0.3s, color 0.3s, transform 0.35s var(--so-spring);
}

:root[data-admin-theme] .is-login .admin-login-pin input:not(:placeholder-shown) + .admin-login-go {
  background: var(--so-ink);
  color: var(--so-panel);
  animation: so-pop 0.35s var(--so-spring) both;
}

:root[data-admin-theme] .is-login .admin-login-go:hover {
  transform: translateX(2px);
  box-shadow: none;
}

:root[data-admin-theme] .is-login .admin-login-go:active {
  transform: scale(0.94);
}

:root[data-admin-theme] .is-login .admin-login-go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-admin-theme] .is-login .admin-login-error {
  margin: 0;
  padding-left: 24px;
  color: var(--so-red);
  font-size: 13px;
  font-weight: 600;
}

:root[data-admin-theme] .is-login .admin-login-error.admin-login-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -16px 0 10px;
  padding: 0;
  color: var(--so-amber);
  text-align: center;
  animation: so-rise 0.6s var(--so-ease) both;
}

:root[data-admin-theme] .is-login .admin-login-notice::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

:root[data-admin-theme] .is-login .admin-login-account-toggle {
  align-self: center;
  margin-top: 4px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--so-ink3);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.25s;
}

:root[data-admin-theme] .is-login .admin-login-account-toggle:hover {
  color: var(--so-ink);
}

:root[data-admin-theme] .is-login .admin-login-build {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  margin: 0;
  color: var(--so-ink3);
  font-family: var(--so-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
