:root {
  --b2g-green: #96BD0D;
  --b2g-blue: #0D3D82;
  --b2g-white: #FFFFFF;
  --b2g-bg: #F8FAFC;
}

body.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--b2g-blue) 0%, #0a2f65 100%);
}

body.admin-panel {
  margin: 0;
  background: var(--b2g-bg);
  color: #1f2937;
}

.text-b2g-blue {
  color: var(--b2g-blue);
}

.admin-layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 260px;
  background: var(--b2g-blue);
  color: var(--b2g-white);
  flex-shrink: 0;
}

.store-sidebar,
.admin-sidebar {
  background: linear-gradient(180deg, #0a326a 0%, #0d3d82 45%, #0f4a9a 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem !important;
}

.sidebar-brand {
  color: var(--b2g-white);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.sidebar-brand-logo {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
}

.store-sidebar .sidebar-brand,
.admin-sidebar .sidebar-brand {
  min-height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.store-sidebar .sidebar-brand-logo,
.admin-sidebar .sidebar-brand-logo {
  height: 54px;
  width: auto;
  max-width: none;
  margin: 0 auto;
}

.store-sidebar__separator {
  margin-top: 0.35rem;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: 0;
}

.store-sidebar__menu-title {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand-logo {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: var(--b2g-white);
  background: rgba(255, 255, 255, 0.15);
}

.store-sidebar .nav-link,
.admin-sidebar .nav-link {
  border-left: 4px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem 0.5rem calc(0.75rem - 4px);
}

aside.store-sidebar .nav-link.active,
aside.store-sidebar .nav-link.active:hover,
aside.admin-sidebar .nav-link.active,
aside.admin-sidebar .nav-link.active:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #8DB600;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.avatar-circle {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(13, 61, 130, 0.12);
  color: var(--b2g-blue);
}

.store-user-dropdown .dropdown-toggle::after {
  margin-left: .45rem;
}

.store-user-trigger {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(13, 61, 130, 0.2);
  background: rgba(13, 61, 130, 0.1);
  color: var(--b2g-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem;
  padding: 0;
}

.store-user-trigger:hover,
.store-user-trigger:focus,
.store-user-trigger:active {
  background: rgba(13, 61, 130, 0.16) !important;
  border-color: rgba(13, 61, 130, 0.35) !important;
  color: var(--b2g-blue) !important;
}

.b2g-modal-body-scroll {
  max-height: 70vh;
  overflow-y: auto;
}

.btn-primary {
  background-color: var(--b2g-green);
  border-color: var(--b2g-green);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #84a90b !important;
  border-color: #84a90b !important;
}

@media (max-width: 991.98px) {
  .admin-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

body.login-school-page {
  margin: 0;
  min-height: 100vh;
  background: #f2f5fb;
  color: #0f172a;
}

body.register-page {
  margin: 0;
  min-height: 100vh;
  background: #eef2f9;
}

.school-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.school-login-illustration {
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 3.5rem;
  color: #fff;
  background: linear-gradient(145deg, #0d3d82 0%, #0b2d5e 100%);
}

.school-login-illustration::before,
.school-login-illustration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.school-login-illustration::before {
  width: 420px;
  height: 420px;
  top: -130px;
  right: -120px;
}

.school-login-illustration::after {
  width: 320px;
  height: 320px;
  bottom: -110px;
  left: -90px;
}

.school-login-illustration__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.school-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  margin-bottom: 1.2rem;
}

.school-login-illustration h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.school-login-illustration p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
}

.school-login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.school-login-card {
  width: 100%;
  max-width: 540px;
  border-radius: 1rem;
}

.school-login-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--b2g-blue);
}

.school-login-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.school-login-links a {
  color: var(--b2g-blue);
  font-weight: 600;
  text-decoration: none;
}

.school-login-links a:hover {
  text-decoration: underline;
}

body.login-student-page .school-login-illustration {
  color: var(--b2g-white);
  background: var(--b2g-green);
}

body.login-student-page .school-login-kicker,
body.login-student-page .school-login-links a {
  color: var(--b2g-blue);
}

body.login-student-page .school-login-illustration p {
  color: rgba(255, 255, 255, 0.9);
}

body.login-student-page .school-login-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
}

body.login-student-page .btn-primary {
  background-color: var(--b2g-blue);
  border-color: var(--b2g-blue);
}

body.login-student-page .btn-primary:hover,
body.login-student-page .btn-primary:focus,
body.login-student-page .btn-primary:active {
  background-color: #0a2f65 !important;
  border-color: #0a2f65 !important;
}

.register-shell {
  border-radius: 1rem;
}

.register-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--b2g-blue);
}

.register-panel {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 1rem;
  background: #fff;
}

.register-split-shell {
  min-height: 100vh;
}

.register-form-area {
  align-items: flex-start;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.register-form-card {
  max-width: 860px;
}

@media (min-width: 992px) {
  .school-login-shell {
    grid-template-columns: minmax(340px, 1fr) minmax(380px, 1fr);
  }

  .school-login-form-area {
    padding: 3rem;
  }

  .register-split-shell {
    grid-template-columns: minmax(320px, .9fr) minmax(680px, 1.3fr);
  }

  .register-form-area {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
