:root {
  /* brand palette – reuse across whole backoffice */
  --bo-bg-main: #0f172a;
  --bo-bg-soft: #111827;
  --bo-bg-card: #ffffff;
  --bo-accent: #2563eb;
  --bo-accent-soft: rgba(37, 99, 235, 0.1);
  --bo-border-subtle: #e5e7eb;
  --bo-text-main: #111827;
  --bo-text-soft: #6b7280;
  --bo-radius-lg: 16px;
  --bo-radius-xl: 24px;
  --bo-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* global body baseline (will also be used on dashboard) */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
  "Segoe UI", sans-serif;
  color: var(--bo-text-main);
}

/* ============ AUTH LAYOUT ============ */

.bo-auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #1e293b, #020617 52%);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* 2-column layout: side (brand) + main (form) */
.bo-auth-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 24px auto;
  background: rgba(15, 23, 42, 0.82);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* left side */
.bo-auth-side {
  padding: 2.4rem 2.6rem;
  color: #e5e7eb;
  position: relative;
  background: radial-gradient(circle at top left,
  rgba(37, 99, 235, 0.65),
  rgba(15, 23, 42, 0.9) 45%),
  radial-gradient(circle at bottom right,
    rgba(16, 185, 129, 0.3),
    rgba(15, 23, 42, 1) 50%);
}

.bo-auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(248, 250, 252, 0.12), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

.bo-logo {
  position: relative;
  z-index: 1;
}

.bo-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 0%, #eff6ff, #3b82f6 55%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: #0b1120;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.7);
}

.bo-logo-text {
  display: flex;
  flex-direction: column;
}
.bo-logo-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.bo-logo-subtitle {
  font-size: 0.78rem;
  opacity: 0.8;
}

.bo-auth-heading {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  font-weight: 600;
}
.bo-auth-text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  max-width: 360px;
  color: #e5e7eb;
  opacity: 0.9;
}

.bo-auth-bullets {
  position: relative;
  z-index: 1;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.bo-auth-bullets li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.bo-auth-bullets li::before {
  content: "•";
  color: #bbf7d0;
  font-size: 1.2rem;
  line-height: 1;
}

/* right side – form area */
.bo-auth-main {
  padding: 2.4rem 2.6rem;
  background: radial-gradient(circle at top left, #020617, #020617 50%);
}

.bo-auth-card {
  max-width: 420px;
  margin-inline: auto;
  background-color: #f9fafb;
  border-radius: 24px;
  padding: 2.1rem 2.2rem 2rem;
  box-shadow: var(--bo-shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.bo-auth-title {
  font-size: 1.45rem;
  font-weight: 600;
}
.bo-auth-subtitle {
  font-size: 0.9rem;
  color: var(--bo-text-soft);
}

/* general tweaks for Bootstrap controls, across app */
.bo-auth-card .form-control {
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  border-color: var(--bo-border-subtle);
  box-shadow: none;
}
.bo-auth-card .form-control:focus {
  border-color: var(--bo-accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.bo-auth-card .btn-primary {
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
}

/* link style we can reuse elsewhere */
.bo-link-small {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--bo-text-soft);
}
.bo-link-small:hover {
  color: var(--bo-accent);
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 991.98px) {
  .bo-auth-wrapper {
    margin: 0;
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
  }
}

@media (max-width: 767.98px) {
  .bo-auth-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .bo-auth-main {
    padding: 1.8rem 1.4rem;
  }

  .bo-auth-card {
    border-radius: 20px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
  }
}
