/* Sign-in and sign-up (templates/account/_site_auth_base.html: account/login.html, account/signup.html,
   landlords/signup.html). A split screen: the photo panel (.au-side, always dark) and the form (.au-main).
   Under 960px the photo panel becomes a slim brand bar above the form. Every class starts with "au-". */

.au-body { min-height: 100vh; background: var(--bg); }
.au-shell { display: grid; grid-template-columns: minmax(400px, 0.92fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }

/* ---------- Photo panel ---------------------------------------------------------------- */

.au-side {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 32px clamp(32px, 3.6vw, 56px) 30px;
  color: #fff; background: #0b1220;
}
/* Shown while the photo loads (and if it never does): the brand colour glowing on night blue. */
.au-side::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(90% 60% at 100% 0%, color-mix(in oklab, var(--brand) 42%, transparent), transparent 70%),
    radial-gradient(80% 60% at 0% 100%, color-mix(in oklab, var(--brand) 30%, transparent), transparent 70%),
    #0b1220;
}
.au-side::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, .6) 0%, rgba(6, 10, 18, .08) 20%, rgba(6, 10, 18, .3) 42%, rgba(6, 10, 18, .82) 64%, rgba(6, 10, 18, .94) 100%),
    linear-gradient(90deg, rgba(6, 10, 18, .35), transparent 70%);
}
.au-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }

.au-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.au-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; min-width: 0; }
.au-brand img { width: auto; height: 40px; flex: none; }
.au-brand-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.au-brand-name b { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-brand-name small { margin-top: 3px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-brand:focus-visible { outline-color: #fff; }

.au-side-body { margin-top: auto; padding-top: 32px; max-width: 34rem; }
.au-side-title { font-size: clamp(2rem, 1.1rem + 1.7vw, 2.85rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .3); }
.au-side-title em { font-style: normal; color: #9fc0ff; }
.au-side-lede { margin-top: 14px; max-width: 46ch; font-size: 1.02rem; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.au-perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.au-perks li {
  display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: var(--r);
  background: rgba(10, 16, 28, .42); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
}
.au-perk-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }
.au-perk-ic .s-ic { width: 19px; height: 19px; }
.au-perks b { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.au-perks li > span:last-child > span { display: block; margin-top: 2px; font-size: 0.86rem; line-height: 1.45; color: rgba(255, 255, 255, .74); }

.au-side-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8rem; color: rgba(255, 255, 255, .66); }
.au-side-foot span { display: inline-flex; align-items: center; gap: 6px; }
.au-side-foot .s-ic { width: 14px; height: 14px; }

/* Short laptop screens: keep the panel's words whole by dropping the least important first. */
@media (min-width: 960px) and (max-height: 820px) { .au-side-lede { display: none; } .au-perks { margin-top: 20px; } }
@media (min-width: 960px) and (max-height: 660px) { .au-perks { display: none; } }

/* ---------- Theme switch ----------------------------------------------------------------- */

.au-theme {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.au-theme:hover { color: var(--ink); border-color: var(--line-strong); }
.au-theme:focus-visible { outline: none; box-shadow: var(--ring); }
.au-theme .s-ic { width: 18px; height: 18px; }
.au-theme .au-ic-sun { display: none; }
[data-theme="dark"] .au-theme .au-ic-sun { display: block; }
[data-theme="dark"] .au-theme .au-ic-moon { display: none; }
.au-theme--bar { display: none; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.au-theme--bar:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); color: #fff; }

/* ---------- Form side ------------------------------------------------------------------- */

.au-main { display: flex; flex-direction: column; min-width: 0; padding: 24px clamp(24px, 4vw, 64px) 26px; background: var(--bg); outline: none; }
.au-top { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.au-content { width: 100%; max-width: 448px; margin: auto; padding: 16px 0 36px; }
.au-content--wide { max-width: 540px; }

.au-roles-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.au-roles { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-sunk); border: 1px solid var(--line); }
.au-role {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink-2); font-size: 0.9rem; font-weight: 700; white-space: nowrap; text-decoration: none !important;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.au-role:hover { color: var(--ink); background: color-mix(in oklab, var(--surface) 55%, transparent); }
.au-role .s-ic { width: 17px; height: 17px; color: var(--ink-3); transition: color .18s var(--ease); }
.au-role[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.au-role[aria-current="true"] .s-ic { color: var(--primary); }
.au-role:focus-visible { outline: none; box-shadow: var(--ring); }
[data-theme="dark"] .au-role[aria-current="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

.au-head { margin-top: 26px; }
.au-title { font-size: clamp(1.7rem, 1.35rem + 1vw, 2.15rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.au-title--first { margin-top: 12px; }
.au-sub { margin-top: 10px; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

.au-form { margin-top: 26px; }
.au-pw { padding-right: 48px; }
.au-pw::-ms-reveal { display: none; }
.au-pw-help { margin-top: 2px; }
.au-pw-help ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.s-input-action .au-ic-hide { display: none; }
.s-input-action[aria-pressed="true"] .au-ic-show { display: none; }
.s-input-action[aria-pressed="true"] .au-ic-hide { display: block; }
.s-input-action:focus-visible { outline: none; box-shadow: var(--ring); }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.au-row .s-check { align-items: center; }
.au-row .s-check input { margin: 0; }
.au-forgot { font-size: 0.9rem; font-weight: 700; }
.au-terms a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.au-submit { margin-top: 4px; }
.au-submit[aria-busy="true"] { opacity: .75; pointer-events: none; }

.au-new { margin-top: 28px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.au-new p { font-size: 0.93rem; line-height: 1.55; color: var(--ink-2); }
.au-new b { color: var(--ink); }
.au-new .s-link { margin-top: 10px; font-size: 0.93rem; }
.au-new-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.au-new .au-new-note { margin-top: 12px; font-size: 0.85rem; color: var(--ink-3); }

.au-alt { margin-top: 24px; font-size: 0.93rem; color: var(--ink-2); }
.au-alt a { font-weight: 700; }
.au-legal { margin-top: 14px; font-size: 0.8rem; line-height: 1.55; color: var(--ink-3); }
.au-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* Account chooser: each card is one link (its call to action stretches over the whole card). */
.au-choices { display: grid; gap: 12px; margin-top: 26px; }
.au-choice {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 18px 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.au-choice:hover { border-color: var(--primary-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.au-choice:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.au-choice-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); align-self: start; }
.au-choice-ic .s-ic { width: 23px; height: 23px; }
.au-choice-t { font-size: 1.06rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.au-choice-d { margin-top: 4px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.au-choice-cta { margin-top: 8px; font-size: 0.88rem; color: var(--ink-3); }
.au-choice-cta a { font-weight: 700; color: var(--link); }
.au-choice-cta a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.au-choice-cta a:focus-visible { outline: none; }
.au-choice-go { width: 20px; height: 20px; color: var(--ink-4); transition: color .2s var(--ease), transform .2s var(--ease); }
.au-choice:hover .au-choice-go { color: var(--primary); transform: translateX(3px); }

.au-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
.au-note > .s-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }
.au-note b { color: var(--ink); }
.au-note a { font-weight: 700; }

.au-divider { display: flex; align-items: center; gap: 14px; margin: 32px 0 16px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-invite-row { display: grid; gap: 10px; justify-items: start; }
.au-invite-row > .s-input-wrap { width: 100%; }
.au-nobr { white-space: nowrap; }

/* Footer under the form */
.au-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-3); }
.au-foot-copy { display: none; }
.au-foot-links { display: flex; gap: 18px; margin-left: auto; }
.au-foot-links a { color: var(--ink-3); }
.au-foot-links a:hover { color: var(--ink); }

/* ---------- Tablet and phone: the photo panel becomes a slim brand bar -------------------- */

@media (max-width: 959px) {
  .au-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .au-side { position: relative; height: auto; padding: 12px var(--gutter); }
  .au-side::after { display: none; }
  .au-side-body, .au-side-foot { display: none; }
  .au-brand img { height: 36px; }
  .au-theme--bar { display: grid; }
  .au-top { display: none; }
  .au-main { padding: 0 var(--gutter) 22px; }
  .au-content { margin: 0 auto; padding: 32px 0 40px; }
  .au-foot { justify-content: center; text-align: center; border-top: 1px solid var(--line); padding-top: 18px; }
  .au-foot-copy { display: block; }
  .au-foot-links { margin-left: 0; }
}

@media (max-width: 560px) {
  .au-content { padding-top: 26px; }
  .au-invite-row { justify-items: stretch; }
  .au-choice { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; }
  .au-choice-go { display: none; }
  .au-choice-ic { width: 42px; height: 42px; border-radius: 12px; }
  .au-new { padding: 16px; }
}

@media (max-width: 400px) {
  .au-roles { gap: 2px; padding: 3px; }
  .au-role { padding: 0 8px; font-size: 0.86rem; }
  .au-role .s-ic { display: none; }
}
