/* Окно входа по макетам дизайнера. Стили панели администратора независимы. */
.auth-overlay.auth-entry {
  --auth-backdrop: #afc4bd;
  --auth-panel: #d0ddd8;
  --auth-ink: #082b20;
  --auth-muted: #637970;
  --auth-line: #49685c;
  --auth-pill: #082b20;
  --auth-pill-ink: #eef4f1;
  --auth-track: #82958d;
  --auth-photo-shade: 0;
  background: var(--auth-backdrop);
  backdrop-filter: none;
  padding: 20px 24px;
  align-items: safe center;
  overflow-y: auto;
  color-scheme: light;
}
[data-theme="dark"] .auth-entry {
  --auth-backdrop: #02170f;
  --auth-panel: #062b1e;
  --auth-ink: #d2dfd9;
  --auth-muted: #a9bfb4;
  --auth-line: #a9bfb4;
  --auth-pill: #d0dfd9;
  --auth-pill-ink: #082b20;
  --auth-track: transparent;
  --auth-photo-shade: .38;
  color-scheme: dark;
}
.auth-entry .auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(756px, 100%);
  min-height: 674px;
  max-height: none;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  background: var(--auth-panel);
  color: var(--auth-ink);
  box-shadow: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 300;
}
.auth-entry .auth-visual {
  position: relative;
  min-width: 0;
  border-radius: 25px;
  background: #214b2f url('./assets/auth-irrigation.png') center / cover no-repeat;
}
.auth-entry .auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #001b10;
  opacity: var(--auth-photo-shade);
  transition: opacity .25s ease;
}
.auth-entry .auth-panel { min-width: 0; padding-bottom: 30px; }
.auth-entry .auth-card-head { padding: 22px 14px 0; background: none; border: 0; }
.auth-entry .auth-brand { gap: 6px; margin: 0; height: 36px; }
.auth-entry .auth-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--auth-pill); color: var(--auth-pill-ink); }
.auth-entry .auth-logo svg { width: 25px; height: 25px; }
.auth-entry .auth-brand-title { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.auth-entry .auth-brand-sub { margin-top: 5px; color: var(--auth-muted); font-size: 9px; letter-spacing: 0; }
.auth-entry .auth-title,
.auth-entry .auth-subtitle,
.auth-entry .auth-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.auth-entry .auth-icon-button { width: 34px; height: 34px; color: var(--auth-ink); border-radius: 50%; }
.auth-entry .auth-icon-button svg { width: 30px; height: 30px; stroke-width: 1.4; }
.auth-entry .auth-icon-button:hover { background: color-mix(in srgb, var(--auth-ink) 10%, transparent); }
.auth-entry .auth-tabs {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 47px;
  margin: 86px 8px 0;
  padding: 0;
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  background: var(--auth-track);
}
.auth-entry .auth-tabs::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  z-index: -1;
  width: calc(55% + 1px);
  border-radius: inherit;
  background: var(--auth-pill);
  transition: transform .32s cubic-bezier(.22,.8,.25,1);
}
.auth-entry [data-auth-mode="register"] .auth-tabs::before { transform: translateX(82%); }
.auth-entry .auth-tab,
.auth-entry .auth-tab:hover,
.auth-entry .auth-tab[aria-selected="true"] {
  min-width: 0;
  height: 45px;
  border: 0;
  border-radius: inherit;
  padding: 0 8px;
  background: transparent;
  box-shadow: none;
  color: #f0f4f2;
  font-size: 19px;
  font-weight: 300;
  transition: color .22s ease;
}
.auth-entry .auth-tab[aria-selected="true"] { color: var(--auth-pill-ink); }
.auth-entry .auth-tab:hover:not([aria-selected="true"]) { color: #fff; }
.auth-entry .auth-forms { margin-top: 88px; }
.auth-entry [data-auth-mode="register"] .auth-forms { margin-top: 34px; }
.auth-entry .auth-panel:not(:has(.auth-tabs)) .auth-forms { margin-top: 120px; }
.auth-entry .auth-body { gap: 22px; padding: 0 26px; margin: 0; }
.auth-entry #auth-register-form { gap: 14px; }
.auth-entry .auth-field { display: block; }
.auth-entry .auth-field input {
  height: 47px;
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  padding: 10px 22px;
  background: transparent;
  color: var(--auth-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 300;
  box-shadow: none;
}
.auth-entry .auth-field input::placeholder { color: var(--auth-muted); opacity: 1; }
.auth-entry .auth-field input:focus {
  background: color-mix(in srgb, var(--auth-panel) 90%, var(--auth-ink));
  border-color: var(--auth-ink);
  outline: 2px solid color-mix(in srgb, var(--auth-ink) 24%, transparent);
  outline-offset: 3px;
  box-shadow: none;
}
.auth-entry .auth-submit {
  justify-self: center;
  width: min(200px, 100%);
  min-height: 47px;
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--auth-pill);
  color: var(--auth-pill-ink);
  font-size: 18px;
  font-weight: 300;
  transition: filter .18s ease, transform .18s ease;
}
.auth-entry #auth-register-form .auth-submit { width: min(244px, 100%); margin-top: 8px; font-size: 16px; }
.auth-entry .auth-submit:hover:not(:disabled) { background: var(--auth-pill); border-color: transparent; filter: brightness(1.12); transform: translateY(-1px); }
.auth-entry .auth-foot { justify-items: center; gap: 16px; padding: 16px 14px 0; }
.auth-entry #auth-continue-guest {
  width: min(200px, 100%);
  min-height: 47px;
  border: 1px solid var(--auth-track);
  border-radius: 28px;
  background: var(--auth-track);
  color: #f2f6f4;
  font-size: 13px;
  font-weight: 300;
}
[data-theme="dark"] .auth-entry #auth-continue-guest { border-color: var(--auth-line); color: var(--auth-ink); }
.auth-entry #auth-continue-guest:hover { filter: brightness(1.14); }
.auth-entry .auth-hint { color: var(--auth-muted); font-size: 12px; line-height: 1.55; text-align: center; font-weight: 300; }
.auth-entry .auth-error { padding: 9px 14px; border-radius: 14px; color: #8f2820; background: #ffe8e2; border-color: #d7a49b; }
[data-theme="dark"] .auth-entry .auth-error { color: #ffd6ce; background: #492b24; border-color: #a87569; }
.auth-entry .auth-notice { width: 100%; border-radius: 14px; color: var(--auth-ink); background: color-mix(in srgb, var(--auth-ink) 7%, var(--auth-panel)); border-color: var(--auth-line); }
.auth-entry .auth-spinner { border-color: color-mix(in srgb, var(--auth-pill-ink) 30%, transparent); border-top-color: var(--auth-pill-ink); }
.auth-entry button:focus-visible { outline-color: var(--auth-ink); outline-offset: 4px; }
.top-right-island .auth-user { padding: 0; }
.top-right-island .auth-user-name { color: var(--text-primary); }
.top-right-island .auth-user-role { color: var(--text-muted); }
.top-right-island .auth-user .auth-action { color: var(--text-primary); border-color: var(--panel-border); }
.top-right-island .auth-user .auth-action:hover { color: var(--text-primary); background: var(--surface-hover); }
.top-right-island .auth-avatar { color: var(--accent-primary); background: var(--surface-hover); border-color: var(--panel-border); }
@media (max-width: 620px) {
  .auth-overlay.auth-entry { padding: 16px; align-items: start; }
  .auth-entry .auth-card { grid-template-columns: 1fr; width: min(400px, 100%); min-height: 0; border-radius: 22px; margin: auto; }
  .auth-entry .auth-visual { display: none; }
  .auth-entry .auth-panel { padding-bottom: 30px; }
  .auth-entry .auth-card-head { padding: 22px 18px 0; }
  .auth-entry .auth-tabs { margin: 48px 18px 0; }
  .auth-entry .auth-forms { margin-top: 48px; }
  .auth-entry [data-auth-mode="register"] .auth-forms { margin-top: 30px; }
  .auth-entry .auth-body { padding: 0 26px; }
  .auth-entry .auth-foot { padding: 16px 22px 0; }
}
@media (max-height: 650px) and (min-width: 621px) {
  .auth-overlay.auth-entry { padding: 16px; }
  .auth-entry .auth-card { min-height: 590px; }
  .auth-entry .auth-tabs { margin-top: 46px; }
  .auth-entry .auth-forms { margin-top: 48px; }
  .auth-entry [data-auth-mode="register"] .auth-forms { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-entry .auth-tabs::before,
  .auth-entry .auth-tab,
  .auth-entry .auth-visual::after,
  .auth-entry .auth-submit { transition: none; }
}
