body.admin-login-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at top left, rgba(111, 184, 107, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(47, 111, 58, 0.18), transparent 30%),
    #f3f1ea;
}

.auth-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(47, 111, 58, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(21, 37, 24, 0.16);
  padding: 28px 24px;
  display: grid;
  gap: 20px;
}

.auth-brand {
  display: grid;
  gap: 6px;
}

.auth-kicker {
  margin: 0;
  color: #2f6f3a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-brand h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.05;
  color: #18311e;
}

.auth-sub {
  margin: 0;
  color: #5e6b5e;
  line-height: 1.4;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #425242;
  font-size: 14px;
}

.auth-form input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #d8ded2;
  padding: 0 14px;
  background: #fff;
  font: inherit;
}

.auth-form button {
  min-height: 48px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: #6b746a;
}

.auth-message.is-error {
  color: #b23b3b;
}

.auth-message.is-success {
  color: #2f6f3a;
}


.auth-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(11, 17, 12, 0.42);
}

.auth-dialog-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(47, 111, 58, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(21, 37, 24, 0.18);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.auth-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-dialog-head h2 {
  margin: 0;
  font-size: 24px;
  color: #18311e;
}

.auth-dialog-copy {
  margin: 0;
  color: #5e6b5e;
  line-height: 1.45;
}

.auth-dialog label {
  display: grid;
  gap: 6px;
  color: #425242;
  font-size: 14px;
}

.auth-dialog input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #d8ded2;
  padding: 0 14px;
  background: #fff;
  font: inherit;
}

.auth-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* 2026-03-20: unified compact auth inputs */
.auth-form input,
.auth-dialog input {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.2;
}

.auth-form button,
.auth-dialog-actions button {
  min-height: 40px;
}


.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-password-wrap input {
  width: 100%;
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #425242;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-password-toggle .eye-open,
.auth-password-toggle .eye-closed {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.auth-password-toggle .eye-open::before,
.auth-password-toggle .eye-closed::before {
  content: '';
  position: absolute;
  inset: 3px 1px;
  border: 2px solid currentColor;
  border-radius: 70% 70% 55% 55% / 60% 60% 40% 40%;
}

.auth-password-toggle .eye-open::after,
.auth-password-toggle .eye-closed::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
}

.auth-password-toggle .eye-closed::before {
  inset: 6px 1px 4px;
}

.auth-password-toggle .eye-closed::after {
  display: none;
}

.auth-password-toggle .eye-closed {
  display: none;
}

.auth-password-toggle.is-visible .eye-open {
  display: none;
}

.auth-password-toggle.is-visible .eye-closed {
  display: block;
}

.auth-password-toggle .eye-closed {
  overflow: visible;
}

.auth-password-toggle .eye-closed::marker {
  display: none;
}

.auth-password-toggle .eye-closed::before {
  opacity: 0.9;
}

.auth-password-toggle .eye-closed {
  position: relative;
}

.auth-password-toggle .eye-closed::before,
.auth-password-toggle .eye-open::before {
  box-sizing: border-box;
}

.auth-password-toggle .eye-closed::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(-28deg);
  border-radius: 999px;
  display: block;
}
