body.sign-in-page { background: #031814; }
.sign-in-page :is(#sidebar, #topbar, #mobile-nav) { display: none !important; }
.sign-in-page .workspace { margin: 0; }
.sign-in-page #main { max-width: none; min-height: 100dvh; padding: 0; }

.auth-shell {
  --auth-lime: #e2fa29;
  --auth-muted: #c3cec9;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(28px, 5.8svh, 72px) 0 clamp(20px, 3svh, 40px);
  background: #031814;
  color: #f8faf8;
}
.auth-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 65%; pointer-events: none; }
.auth-art img { display: block; position: sticky; top: 0; width: 100%; height: 100svh; object-fit: cover; object-position: center 58%; }
.auth-content { width: min(35.6%, 670px); margin-left: max(4.9%, env(safe-area-inset-left)); }
.auth-brand { display: flex; align-items: center; gap: .26em; width: fit-content; font-size: clamp(30px, 3.45vw, 58px); font-weight: 700; letter-spacing: -.055em; line-height: 1.1; }
.auth-mark { display:inline-grid; place-items:center; width:.95em; height:.95em; margin-right:.09em; color:#163e31; background:#dcf76a; border-radius:.24em; font:italic 900 1em/1 Arial,sans-serif; }
.auth-mark::before { content:'J'; font-size:.76em; padding-right:.08em; }
.auth-art img { object-position:90% center; }
.auth-art::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#031814,transparent 22%,transparent 65%,#03181466),linear-gradient(0deg,#031814a6,transparent 35%); pointer-events:none; }
.auth-card { margin-top: clamp(40px, 8.5svh, 98px); }
.auth-card h1 { margin: 0 0 clamp(24px, 5.1svh, 58px); font-size: clamp(64px, min(7.05vw, 11svh), 120px); letter-spacing: -.058em; line-height: .96; }
.auth-card h1 span { display: block; }
.auth-card h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.05; margin: 0 0 20px; }
.auth-card > p { margin: 0 0 14px; }
.auth-card form, .auth-card label { display: grid; gap: 8px; }
.auth-card form { gap: clamp(12px, 2.25svh, 22px); }
.auth-card label { font-weight: 600; }
.auth-card input, .auth-card select {
  width: 100%; min-width: 0; min-height: 49px; padding: 12px 16px;
  border: 1px solid #a3b0ab; border-radius: 8px; background: #041b16; color: #fff; font-size: 16px;
}
#owner-sign-in-form input { min-height: clamp(49px, 6.7svh, 72px); font-size: clamp(17px, 1.55vw, 24px); }
.auth-card input::placeholder { color: var(--auth-muted); opacity: 1; }
.auth-card input[type="checkbox"] { accent-color: var(--auth-lime); }
.auth-password { display: block; position: relative; }
.auth-password input { padding-right: 78px; }
.auth-toggle { position: absolute; right: 3px; top: 2px; bottom: 2px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: inherit; font-size: 1rem; font-weight: 600; }
.auth-card .auth-submit { width: 100%; min-height: clamp(50px, 7.5svh, 80px); justify-content: center; background: var(--auth-lime); color: #0b170b; border: 0; border-radius: 8px; font-size: clamp(19px, 2.1vw, 32px); font-weight: 750; }
.auth-card .auth-submit:hover { background: #ecff59; color: #0b170b; }
.auth-shell a, .auth-card .auth-link, .auth-help .btn { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.auth-card .auth-link, .auth-help .btn { display: inline-flex; align-items: center; justify-self: start; width: fit-content; max-width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; text-align: left; font-size: clamp(16px, 1.45vw, 22px); font-weight: 500; }
.auth-shell a:hover, .auth-card .auth-link:hover, .auth-help .btn:hover { color: var(--auth-lime); }
.auth-help { display: grid; justify-items: start; margin-top: clamp(12px, 2.2svh, 26px); }
.auth-footnote { margin: 16px 0 0; font-size: .82rem; color: var(--auth-muted); }
.auth-footnote a { display: inline-block; padding: 4px 0; }
.auth-quote { position: absolute; right: 1.4%; bottom: 6%; width: 14.2%; max-width: 260px; margin: 0; color: #fff7e9; font: 500 clamp(19px, 1.8vw, 32px)/1.15 Georgia, serif; }
.auth-card .muted { color: var(--auth-muted); }
.auth-card .auth-inbox-note { background: #fff4d4; color: #493814; border-left: 4px solid #ac7212; border-radius: 6px; padding: 12px 14px; line-height: 1.45; }
.auth-inbox-note .spam-reminder { display: block; font-weight: 800; margin-bottom: .25rem; }
.auth-confirm-address, .auth-card .form-error { overflow-wrap: anywhere; }
.auth-shell :focus-visible { outline: 3px solid #c2f65b; outline-offset: 3px; }

@media (min-width: 761px) and (min-aspect-ratio: 17/10) {
  .auth-art { width: min(65%, 112svh); }
  .auth-quote { width: min(14.2%, 21svh); }
}
@media (max-width: 760px), (max-aspect-ratio: 5/4) {
  .auth-shell { padding: max(25px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
  .auth-content { width: 100%; max-width: 500px; margin: 0 auto; }
  .auth-brand { font-size: clamp(30px, 7vw, 42px); }
  .auth-art { width: min(55vw, 315px); height: min(45vw, 240px); }
  .auth-art img { position: static; height: 100%; object-position: center 65%; }
  .auth-card { margin-top: max(85px, calc(min(45vw, 240px) - 39px)); }
  .auth-card h1 { font-size: clamp(42px, 10.8vw, 62px); margin-bottom: 25px; }
  .auth-card h1 span { display: inline; }
  .auth-card form { gap: 12px; }
  .auth-card .auth-submit { font-size: 21px; min-height: 52px; }
  .auth-help { margin-top: 12px; }
  .auth-quote { position: static; width: auto; max-width: 500px; margin: 22px auto 0; font-size: 18px; }
}
