/* Color planes frame the entry form without a background image. */
body.auth-page {
  --auth-ink: #23343c;
  --auth-green: #13795b;
  min-height: 100svh;
  padding: 48px 24px;
  position: relative;
  isolation: isolate;
  background: #e9f1f5;
  background-image:
    linear-gradient(126deg, #14795b 0 19%, transparent 19% 80%, #287d93 80% 100%),
    linear-gradient(126deg, #bce2d2 0 30%, transparent 30% 70%, #d8e7f7 70% 100%),
    linear-gradient(36deg, #f2dae5 0 15%, #e9f1f5 15% 100%);
  color: var(--auth-ink);
  font-family: 'Segoe UI Variable Text', 'Segoe UI', Arial, sans-serif;
  border: 0;
}
body.auth-page::before { content: none; }
.auth-page #auth-app, .auth-page #setup-owner-app { width: min(100%, 480px); }
.auth-page .auth-shell { width: 100%; overflow: hidden; border: 1px solid #d3e0e5; border-radius: 8px; background: #fff; box-shadow: 0 18px 54px #2439421c; }
.auth-page .auth-panel { padding: 40px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-page .auth-brand-simple { display: flex; align-items: center; justify-content: flex-start; gap: 22px; margin: -40px -40px 30px; padding: 30px 40px; text-align: left; background: #173d36; border-bottom: 4px solid #69c9a1; }
.auth-page .auth-logo { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 8px; box-shadow: none; }
.auth-page .auth-brand-simple h1 { max-width: none; color: #fff; font-size: 26px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.auth-page .auth-brand-simple h1 span { display: block; margin-bottom: 6px; color: #b9d7cd; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.auth-page .auth-mode-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 24px; }
.auth-page .auth-mode-heading h2 { color: var(--auth-ink); font-size: 22px; line-height: 1.35; text-align: left; font-weight: 600; }
.auth-page .auth-reset-link, .auth-page .auth-return { padding: 4px 0; border: 0; background: transparent; color: var(--auth-green); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; text-align: right; }
.auth-page .auth-form { display: grid; gap: 20px; }
.auth-page .auth-form :is(.form-field,.field) { display: grid; gap: 8px; min-width: 0; margin: 0; }
.auth-page .auth-form :is(.form-field,.field) > span:first-child { color: #42584e; font-size: 13px; font-weight: 550; }
.auth-page .auth-form input { width: 100%; height: 52px; min-width: 0; border: 1px solid #d8e2dc; border-radius: 6px; padding: 13px 15px; background: #fff; color: var(--auth-ink); font: inherit; font-size: 15px; box-shadow: 0 1px 2px #22342d05; }
.auth-page .auth-form input::placeholder { color: #85948c; }
.auth-page .auth-form input:focus { outline: 0; border-color: var(--auth-green); box-shadow: 0 0 0 3px #14765716; }
.auth-page .auth-password-control { position: relative; display: block; }
.auth-page .auth-password-control input { padding-right: 105px; }
.auth-page .auth-password-toggle { position: absolute; right: 10px; top: 6px; height: 40px; border: 0; border-radius: 4px; padding: 0 8px; background: transparent; color: #586f63; font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; }
.auth-page .auth-password-toggle:hover { background: #f1f5f2; }
.auth-page .auth-submit { justify-content: space-between; min-height: 52px; margin-top: 4px; border: 1px solid var(--auth-green); border-radius: 6px; padding: 14px 18px; background: var(--auth-green); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 4px 10px #14765712; transform: none; }
.auth-page .auth-submit:hover:not(:disabled) { background: #0d6147; transform: none; }
.auth-page .auth-submit:disabled { opacity: .65; }
.auth-page .auth-submit.loading { justify-content: center; }
.auth-page .auth-actions-inline { display: block; margin-top: 26px; }
.auth-page .auth-owner-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #d5e8ed; border-radius: 6px; background: #eef7fa; color: #276778; text-decoration: none; font-size: 14px; font-weight: 550; }
.auth-page .auth-owner-link > .icon:first-child { color: #26768b; }
.auth-page .auth-owner-link > .icon:last-child { margin-left: auto; width: 16px; color: #7a8d82; }
.auth-page .auth-owner-link:hover { color: var(--auth-green); }
.auth-page .auth-return { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; text-align: left; font-size: 13px; }
.auth-page .auth-tracking-link { display: block; margin-top: 24px; color: #356cc4; font-size: 13px; text-decoration: none; text-align: center; }
.auth-page .auth-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 550; }
.auth-page .auth-error { margin: 0; padding: 12px 14px; border-left: 3px solid #bc4242; background: #fcf0f0; color: #a53636; border-radius: 4px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-page .auth-error[hidden] { display: none; }
.auth-page :is(a,button):focus-visible { outline: 2px solid var(--auth-green); outline-offset: 4px; }
@media (max-width: 540px) {
  body.auth-page { padding: 24px 16px; align-items: center; }
  .auth-page .auth-panel { padding: 30px 24px; }
  .auth-page .auth-brand-simple { gap: 18px; margin: -30px -24px 28px; padding: 26px 24px; }
  .auth-page .auth-logo { width: 68px; height: 68px; flex-basis: 68px; }
  .auth-page .auth-brand-simple h1 { font-size: 24px; }
  .auth-page .auth-mode-heading { gap: 12px; }
  .auth-page .auth-mode-heading h2 { font-size: 21px; }
  .auth-page .auth-form input { font-size: 16px; }
}
@media (max-width: 360px) {
  body.auth-page { padding-inline: 12px; }
  .auth-page .auth-panel { padding: 26px 20px; }
  .auth-page .auth-brand-simple { gap: 14px; margin-inline: -20px; margin-top: -26px; padding: 24px 20px; }
  .auth-page .auth-brand-simple h1 { font-size: 22px; }
  .auth-page .auth-reset-link { max-width: 126px; line-height: 1.6; }
}
@media (max-height: 650px) {
  body.auth-page { align-items: start; padding-block: 28px; }
  .auth-page .auth-brand-simple { margin-bottom: 26px; }
}
.auth-page.gateway-page .gateway-shell { width: min(100%, 480px); }
.auth-page.gateway-page .gateway-card { display: grid; justify-items: center; gap: 20px; padding: 32px 20px; border: 0; background: transparent; box-shadow: none; text-align: center; }
.auth-page.gateway-page .gateway-card h1 { color: #173d36; font-size: 26px; line-height: 1.4; }
.auth-page.gateway-page .gateway-logo { width: 88px; height: 88px; border-radius: 8px; }
.auth-page.gateway-page .loader-bar { width: min(100%, 240px); background: #cedee4; }
@media (prefers-reduced-motion: reduce) {
  .auth-page * { transition: none; }
}
