/* One coherent visual layer for every existing authentication mode. */
.app-auth-screen:has(> form.app-auth-card) {
  min-height: 100svh;
  padding: 32px 18px;
  background:
    radial-gradient(ellipse 48% 46% at 10% 10%, #d9e8ec 0%, transparent 100%),
    radial-gradient(ellipse 45% 50% at 90% 87%, #dbeadf 0%, transparent 100%),
    linear-gradient(145deg, #edf2f4 0%, #f8faf9 56%, #e8eef0 100%);
  color: #1c3038;
  font-family: "Golos Text", Arial, sans-serif;
}

.app-auth-screen > form.app-auth-card {
  position: relative;
  display: grid;
  gap: 0;
  width: min(480px, 100%);
  padding: 35px 40px 29px;
  overflow: hidden;
  border: 1px solid #ffffffed;
  border-radius: 28px;
  background: linear-gradient(148deg, #ffffffed 0%, #fcfefcec 48%, #f3f9f6e8 100%);
  box-shadow: 0 26px 68px #425b6840, 0 5px 18px #59717b1e,
    inset 0 2px 2px #fff, inset 0 -2px 4px #a7b7b861;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.app-auth-screen > form.app-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 3px;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(90deg, #d4e3e1, #68aa91 44%, #d6e6dc);
  box-shadow: 0 1px 9px #69a18e65;
}

.app-auth-screen > form.app-auth-card > img {
  display: block;
  content: url("/inventory-static/zoodiscount-logo-transparent-20261014.png");
  width: min(280px, 82%);
  height: 75px;
  max-height: none;
  margin: 0 auto 15px;
  object-fit: cover;
}

.app-auth-screen > form.app-auth-card > div:first-of-type { margin-bottom: 26px; text-align: center; }
.app-auth-screen > form.app-auth-card h1 {
  margin: 0;
  color: #1d3138;
  font-family: "Fira Sans", "Golos Text", Arial, sans-serif;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.app-auth-screen > form.app-auth-card p {
  margin: 8px 0 0;
  color: #697981;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.app-auth-screen > form.app-auth-card > label:not(.app-auth-remember) {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}
.app-auth-screen > form.app-auth-card > label:not(.app-auth-remember) > span,
.app-auth-screen > form.app-auth-card > .app-auth-stores > span {
  color: #344b53;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.app-auth-screen > form.app-auth-card input:not([type="checkbox"]):not([type="radio"]),
.app-auth-screen > form.app-auth-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #bfcecf;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f7fbfa);
  box-shadow: inset 0 2px 4px #8fa8a918, 0 2px 5px #879d9b12;
  color: #1d3037;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 14px;
}
.app-auth-screen > form.app-auth-card input::placeholder { color: #93a0a4; }
.app-auth-screen > form.app-auth-card input:focus-visible,
.app-auth-screen > form.app-auth-card select:focus-visible {
  border-color: #498f73;
  outline: 3px solid #5daa8333;
  background: #fff;
}
.app-auth-screen > form.app-auth-card .app-auth-password-control input { padding-right: 52px !important; }
.app-auth-screen > form.app-auth-card .app-auth-password-control button {
  top: 3px;
  right: 3px;
  width: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #68807e;
}
.app-auth-screen > form.app-auth-card .app-auth-password-control button:hover { background: #eaf4ef; color: #1b7656; }

.app-auth-screen > form.app-auth-card > .app-auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}
.app-auth-screen > form.app-auth-card > .app-auth-remember input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: #21805b;
}
.app-auth-screen > form.app-auth-card > .app-auth-remember span { color: #50636a; font-size: 12px; font-weight: 400; }

.app-auth-screen > form.app-auth-card > button[type="submit"] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  margin: 1px 0 0;
  padding: 0 47px;
  border: 1px solid #18684a;
  border-radius: 12px;
  background: linear-gradient(180deg, #318c68 0%, #247b58 54%, #1c6a4c 100%);
  box-shadow: inset 0 1px 0 #ffffff70, inset 0 -2px 2px #12583f6b,
    0 5px 12px #28644936;
  color: white;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.app-auth-screen > form.app-auth-card > button[type="submit"]::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  opacity: .9;
}
.app-auth-screen > form.app-auth-card > button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #389873, #287f5d 54%, #207151);
  box-shadow: inset 0 1px 0 #ffffff78, inset 0 -2px 2px #12583f6b, 0 8px 17px #28644942;
}
.app-auth-screen > form.app-auth-card > button[type="submit"]:active:not(:disabled) { transform: translateY(1px); }
.app-auth-screen > form.app-auth-card > button[type="submit"]:focus-visible { outline: 3px solid #91c7a7; outline-offset: 3px; }
.app-auth-screen > form.app-auth-card > button[type="submit"]:disabled { opacity: .58; cursor: default; }
.app-auth-screen > form.app-auth-card:has(.app-auth-password-control input:valid) > button[type="submit"]:disabled,
.app-auth-screen > form.app-auth-card:has(input[type="email"]:valid):not(:has(.app-auth-password-control)) > button[type="submit"]:disabled { opacity: .94; cursor: progress; }
.app-auth-screen > form.app-auth-card:has(.app-auth-password-control input:valid) > button[type="submit"]:disabled::after,
.app-auth-screen > form.app-auth-card:has(input[type="email"]:valid):not(:has(.app-auth-password-control)) > button[type="submit"]:disabled::after {
  content: "";
  right: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff75;
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-v2-spin .7s linear infinite;
}
@keyframes auth-v2-spin { to { transform: translateY(-50%) rotate(360deg); } }

.app-auth-screen > form.app-auth-card > .app-auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid #dce7e3;
}
.app-auth-screen > form.app-auth-card > .app-auth-links:has(button:nth-child(2)) { justify-content: space-between; }
.app-auth-screen > form.app-auth-card > .app-auth-links button {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #287755;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.app-auth-screen > form.app-auth-card > .app-auth-links:has(button:nth-child(2)) button:first-child {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #cae0d6;
  background: linear-gradient(180deg, #f8fdf9, #edf7f1);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px #749b8421;
}
.app-auth-screen > form.app-auth-card > .app-auth-links button:hover { background: #eaf4ee; color: #145a40; }
.app-auth-screen > form.app-auth-card > .app-auth-links button:focus-visible { outline: 2px solid #74ac8b; outline-offset: 2px; }

.app-auth-screen > form.app-auth-card .app-auth-stores { margin: 0 0 17px; }
.app-auth-screen > form.app-auth-card .app-auth-store-list {
  max-height: min(230px, 30svh);
  border-color: #cbdad7;
  background: #f8fcf9;
}
.app-auth-screen > form.app-auth-card .app-auth-store-list label:hover { background: #e8f5ee; }
.app-auth-screen > form.app-auth-card .app-auth-store-list input { accent-color: #21805b; }
.app-auth-screen > form.app-auth-card .app-auth-error {
  margin-bottom: 14px;
  border: 1px solid #f0cfcb;
  background: #fff5f3;
  color: #9e3f38;
}

@media (max-width: 540px) {
  .app-auth-screen:has(> form.app-auth-card) { padding: 16px 12px; }
  .app-auth-screen > form.app-auth-card { padding: 25px 24px 23px; border-radius: 23px; }
  .app-auth-screen > form.app-auth-card > img { height: 60px; margin-bottom: 10px; }
  .app-auth-screen > form.app-auth-card > div:first-of-type { margin-bottom: 22px; }
  .app-auth-screen > form.app-auth-card > .app-auth-links { margin-top: 19px; padding-top: 17px; }
}

@media (max-width: 350px) {
  .app-auth-screen > form.app-auth-card { padding-right: 18px; padding-left: 18px; }
  .app-auth-screen > form.app-auth-card > .app-auth-links { gap: 5px; }
  .app-auth-screen > form.app-auth-card > .app-auth-links button { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-auth-screen > form.app-auth-card > button[type="submit"] { transition: none; }
  .app-auth-screen > form.app-auth-card > button[type="submit"]::after { animation-duration: 1.5s; }
}
