/* Auth pages — aligned with /static/app.css (SB Admin–style: primary blue, light page, dark mode). */

body {
  background:
    radial-gradient(900px 600px at 8% -5%, rgba(78, 115, 223, 0.09), transparent 52%),
    radial-gradient(800px 520px at 96% 5%, rgba(34, 74, 190, 0.07), transparent 55%),
    var(--bg);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(78, 115, 223, 0.12), transparent 55%),
    var(--bg);
}

/* Fixed slot for app.js theme toggle (.topActions / .themeBtn from app.css) */
.loginTopbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  padding: 0.65rem 1rem;
  pointer-events: none;
}
.loginTopbar .topActions {
  pointer-events: auto;
}

.loginBody {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 3.25rem 1.25rem 1.5rem;
}

.loginFrame {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 960px) {
  .loginFrame { grid-template-columns: 1.05fr 0.95fr; }
}

.loginPanel {
  padding: 1.35rem 1.25rem;
  background: var(--surface);
}
@media (min-width: 960px) {
  .loginPanel { padding: 2rem 2rem; }
}

.loginBrand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.loginLogo {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  box-shadow: 0 8px 22px rgba(78, 115, 223, 0.35);
}

.loginPanel .eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.loginTitle {
  margin: 0.1rem 0 0.25rem;
  letter-spacing: -0.03em;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-strong);
}

.loginPanel .lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 36rem;
}

/* Form: prefer app.css primitives; tighten spacing for auth */
.loginPanel .card {
  margin-bottom: 0;
}
.loginPanel label {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-strong);
}
.loginPanel input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d1d3e2;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.loginPanel input:focus {
  outline: none;
  border-color: #bac8f3;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.22);
}

.loginForgot { margin: -0.35rem 0 0.85rem; font-size: 0.875rem; }
.loginFoot { text-align: left; margin-top: 1rem; }

.bootstrapCard { margin-top: 1rem; }
.bootstrapToggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-strong);
}
.bootstrapToggle:hover { border-color: #bac8f3; }
.bootstrapChevron { transition: transform 0.15s ease; opacity: 0.75; }
.bootstrapToggle[aria-expanded="true"] .bootstrapChevron { transform: rotate(180deg); }
.bootstrapBody { padding-top: 0.75rem; }

.bootstrapHead { font-weight: 800; margin-bottom: 0.35rem; color: var(--text-strong); }
.bootstrapText { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 0.9rem; font-weight: 600; }

/* Right column — SB Admin sidebar-style gradient */
.loginArt {
  display: none;
  position: relative;
  background: linear-gradient(180deg, #4e73df 0%, #224abe 55%, #1a3a8f 100%);
  color: rgba(255, 255, 255, 0.95);
}
html[data-theme="dark"] .loginArt {
  background: linear-gradient(180deg, #243a6b 0%, #151d2e 70%, #0f1419 100%);
}
@media (min-width: 960px) {
  .loginArt { display: block; }
}

.loginArtInner {
  height: 100%;
  min-height: 280px;
  padding: 2.25rem 2rem;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.loginArtTitle {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.loginArtText {
  color: rgba(255, 255, 255, 0.82);
  max-width: 26rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.loginArtText code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.2);
}

.loginArtBlob {
  margin-top: 1rem;
  width: 100%;
  height: 220px;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 50% 90%, rgba(34, 74, 190, 0.45), rgba(34, 74, 190, 0) 55%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
