/* =====================================================
   Orchid - Authentication shell (trimmed + brand-adapted)
   Namespace: .auth-*
   Vendored from assets/css/pages/auth.css (login.html's "auth-shell", docs/ui/OrchidTemplateMap.md
   §1.2/§3.3). Per README-OPERATOR's "vendor only what the product needs": the portal's sign-in
   is a single SSO button, not a credentialed form, so the source file's social-login grid, password
   strength meter, two-factor OTP grid, lock-screen and its own toast variant are not vendored — only
   the shell/hero/panel/button/theme-toggle classes Pages/SignIn.razor actually uses.
   Brand: every #4f46e5/#4338ca this file's own SCSS tied to the primary token is replaced with
   RentableArea.com's #0e7cb8/#0c699c, same substitution rule as orchid.css. .auth-btn-primary is
   further simplified from the source's three-stop indigo/violet/cyan gradient CTA to a flat
   primary/hover pair, matching the plain solid buttons used everywhere else in the product (the
   gradient was decorative flourish, not a token the owner asked to keep) - see MainLayout family
   PR notes. The hero panel's indigo/violet/teal marketing gradient is likewise re-hued to the blue
   family so the highest-visibility surface on the page doesn't read as "wrong brand colour".
   ===================================================== */

.auth-body {
  --auth-primary: #0e7cb8;
  --auth-primary-hover: #0c699c;
  --auth-success: #10b981;
  --auth-danger: #ef4444;
  --auth-warning: #f59e0b;
  min-height: 100vh;
  background-color: var(--orchid-bg);
  overflow-x: hidden;
}

/* ---------- Shell ---------- */
.auth-shell {
  display: grid;
  grid-template-columns: 6fr 4fr;
  min-height: 100vh;
  position: relative;
}
@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; }
}

/* ---------- Hero panel (left) ---------- */
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, .28), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(34, 211, 238, .25), transparent 45%),
    linear-gradient(135deg, #0c699c 0%, #0e7cb8 45%, #0a4f73 100%);
  isolation: isolate;
}
@media (max-width: 991.98px) {
  .auth-hero { display: none; }
}

.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 80%);
  animation: auth-drift 22s linear infinite;
  z-index: -1;
  opacity: .55;
}
@keyframes auth-drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-24px, -18px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.auth-hero::after {
  content: '';
  position: absolute;
  right: -120px; bottom: -140px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: auth-float 12s ease-in-out infinite;
}
@keyframes auth-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-20px, -30px, 0); }
}

.auth-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.375rem;
}
.auth-hero__brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
}
.auth-hero__brand-mark svg { width: 26px; height: 26px; }

.auth-hero__body { max-width: 520px; margin: 2rem 0; }
.auth-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.auth-hero__title {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.auth-hero__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.5rem;
}

.auth-hero__features { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.auth-hero__features li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; color: rgba(255, 255, 255, .92); }
.auth-hero__features i {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  border-radius: 8px;
  font-size: .875rem;
}

/* ---------- Form panel (right) ---------- */
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  background-color: var(--orchid-surface);
  overflow-y: auto;
}
@media (min-width: 576px) { .auth-panel { padding: 2.5rem 2.5rem; } }
@media (min-width: 992px) { .auth-panel { padding: 2rem 3rem; } }

.auth-panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

.auth-panel__brand-sm {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--orchid-text);
  font-weight: 700;
  letter-spacing: -.02em;
}
.auth-panel__brand-sm svg { width: 26px; height: 26px; }
.auth-panel__brand-sm span { color: var(--auth-primary); font-size: 1.15rem; font-weight: 800; }

.auth-panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.auth-panel__footer { text-align: center; color: var(--orchid-text-muted); font-size: .8125rem; padding-top: 1.25rem; }

/* ---------- Form heading ---------- */
.auth-form__title {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .5rem 0;
  color: var(--orchid-text);
}
.auth-form__subtitle { color: var(--orchid-text-muted); margin-bottom: 1.75rem; font-size: .95rem; }

/* ---------- Primary CTA (flat brand colour, not the template's gradient) ---------- */
.auth-btn-primary {
  --auth-btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: var(--auth-btn-h);
  padding: 0 1.25rem;
  border-radius: 6px;
  border: 0;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  background: var(--auth-primary);
  box-shadow: 0 12px 24px -12px rgba(14, 124, 184, .45);
  transition: background-color 160ms ease, transform 120ms ease, box-shadow 200ms ease;
  cursor: pointer;
}
.auth-btn-primary:hover:not(:disabled) { background: var(--auth-primary-hover); color: #fff; }
.auth-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.auth-btn-primary:disabled { opacity: .7; cursor: not-allowed; box-shadow: none; }

/* ---------- Alert (sign-in error banner, Bootstrap .alert, no extra skin needed) ---------- */
.auth-form .alert { border-radius: 6px; }

/* ---------- Theme toggle (floating) ---------- */
.auth-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--orchid-border);
  background-color: var(--orchid-surface);
  color: var(--orchid-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  transition: background-color 150ms ease, transform 120ms ease, color 150ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.auth-theme-toggle:hover { background-color: var(--orchid-hover); color: var(--auth-primary); }
.auth-theme-toggle .bi { font-size: 1.1rem; }
.auth-theme-toggle .bi-sun-fill { display: none; }
[data-bs-theme="dark"] .auth-theme-toggle .bi-sun-fill { display: inline; }
[data-bs-theme="dark"] .auth-theme-toggle .bi-moon-stars-fill { display: none; }

/* ---------- Helpers ---------- */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--orchid-text-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color 150ms ease;
  margin-top: 1.25rem;
}
.auth-back:hover { color: var(--auth-primary); }
.auth-back i { font-size: 1rem; }

.auth-hidden { display: none !important; }

[data-bs-theme="dark"] .auth-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, .22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(34, 211, 238, .22), transparent 45%),
    linear-gradient(135deg, #0a4f73 0%, #0c699c 45%, #072f44 100%);
}
[data-bs-theme="dark"] .auth-panel { background-color: var(--orchid-surface); }
