/* Sign-up, the email code and the business log-in (shared/auth-frame.js): the form on the left and a business photo on
   the right with a slanted edge, as on the log-in design (docs/login-v67.html). Under 900px wide the photo hides and
   the form has the whole screen. Used by join/ and admin/, so colours fall back to fixed values. */
body.on-auth { padding: 0; background: var(--surface, #fff); }
body.on-auth .top, body.on-auth #small-foot { display: none; }
body.on-auth #app { max-width: none; margin: 0; }

.auth { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-panel { display: flex; flex-direction: column; padding: 26px 32px; }
.auth-panel > .brand { align-self: flex-start; color: var(--ink, #0d0d12); text-decoration: none; }
.auth-panel > .brand i { background: var(--pick, #0276df); color: #fff; }
.auth-form { width: 100%; max-width: 420px; margin: auto; padding: 30px 0; }
.auth-form h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-align: center; }
.auth-form .sub { text-align: center; color: var(--muted, #6e6e7a); margin: 6px 0 22px; }
.auth-form h1:focus { outline: none; } /* focused by the page after each screen change, for screen readers */
.auth-link { font-weight: 700; color: var(--pick, #0276df); }

/* The business log-in form (admin/login.js) inside the frame */
.auth-form .login { display: grid; justify-items: stretch; gap: 14px; margin: 0; }
.auth-form .login .btn { width: 100%; }
.auth-after { text-align: center; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, #ececf1); text-align: center; font-size: 14px; display: grid; gap: 6px; }
.auth-foot .auth-muted { color: var(--muted, #6e6e7a); font-size: 13px; }

.auth-photo { position: relative; overflow: hidden; background: var(--surface, #fff); }
.auth-arch { position: absolute; inset: 0; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.auth-arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.auth-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(25, 18, 12, .55)); pointer-events: none; }
.auth-types { position: absolute; left: 0; right: 0; bottom: 5%; z-index: 1; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-photo { display: none; }
  .auth-panel { padding: 20px 16px; }
}

/* Show/Hide inside password boxes (admin/login.js) */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 68px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted, #6e6e7a); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.pw-toggle:focus-visible { outline: 2px solid var(--pick, #0276df); outline-offset: 1px; }

/* The fade between letters and dots, and the line that drains over the 7 seconds a password stays shown */
.pw-wrap .input { transition: color .16s ease, filter .16s ease; }
.pw-wrap.is-swapping .input { color: transparent; filter: blur(3px); }
.pw-toggle { transition: opacity .16s ease, background-color .2s ease; }
.pw-wrap.is-swapping .pw-toggle { opacity: 0; }
.pw-timer { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--pick, #0276df);
  transform: scaleX(0); transform-origin: left center; opacity: 0; pointer-events: none; }
.pw-wrap.is-shown .pw-timer { animation: pw-drain 7s linear forwards; }
@keyframes pw-drain {
  0% { transform: scaleX(1); opacity: 0; }
  4% { opacity: .9; }
  92% { opacity: .9; }
  100% { transform: scaleX(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-wrap .input, .pw-toggle { transition: none; }
  .pw-wrap.is-shown .pw-timer { animation: none; }
}

/* Staging only: quick picks for test logins under Email (web/admin/test-logins.js) */
.test-logins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; }
.test-logins > span { font-size: 11.5px; font-weight: 700; color: var(--muted, #6e6e7a); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.test-login { height: 28px; padding: 0 12px; border: 1px dashed #c9c9d3; border-radius: 99px; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: inherit; cursor: pointer; }
.test-login:hover { border-style: solid; border-color: #0276df; color: #0276df; }
.test-remember { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; font-size: 13px; color: var(--muted, #6e6e7a); cursor: pointer; }
.test-remember input { width: 16px; height: 16px; margin: 0; accent-color: #0276df; }
