/* ==========================================================================
   Bhagwati Paramedical Institute — Modern Login Screen
   Namespaced with `bpi-auth` — scoped to the shared admin/center/student
   login view only.
   ========================================================================== */

:root {
  --bpi-navy: #14264d;
  --bpi-navy-light: #1f3a73;
  --bpi-navy-soft: #eef2f9;
  --bpi-gold: #c9a227;
  --bpi-gold-light: #e8c65a;
  --bpi-ink: #1a1f2b;
  --bpi-body: #5a6272;
  --bpi-border: #e4e8f1;
  --bpi-shadow: 0 20px 50px -20px rgba(20, 38, 77, 0.28);
}

.bpi-auth {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #fff;
  font-family: 'Public Sans', 'Segoe UI', sans-serif;
}

.bpi-auth__brand {
  flex: 0 0 44%;
  max-width: 560px;
  position: relative;
  background: linear-gradient(150deg, var(--bpi-navy) 0%, var(--bpi-navy-light) 65%, #26478f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 44px;
  overflow: hidden;
}

.bpi-auth__brand::before,
.bpi-auth__brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.16);
}
.bpi-auth__brand::before { width: 320px; height: 320px; top: -140px; left: -90px; }
.bpi-auth__brand::after { width: 220px; height: 220px; bottom: -100px; right: -60px; background: rgba(255,255,255,0.06); }

.bpi-auth__brand-inner {
  position: relative;
  z-index: 2;
  animation: bpi-auth-fade-up 0.7s ease both;
}

.bpi-auth__logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin-bottom: 22px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.25));
}

.bpi-auth__brand-inner h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.bpi-auth__brand-inner .bpi-auth__sub {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bpi-gold-light);
  font-weight: 600;
  margin-bottom: 34px;
}

.bpi-auth__type-icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--bpi-gold-light);
  margin: 0 auto 20px;
}

.bpi-auth__type-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.bpi-auth__type-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 320px;
  margin: 0 auto;
}

.bpi-auth__badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.bpi-auth__badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px;
  font-weight: 600;
}
.bpi-auth__badges i { color: var(--bpi-gold-light); }

.bpi-auth__form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  background: #fbfbfd;
}

.bpi-auth__back {
  position: absolute;
  top: 28px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bpi-body);
  text-decoration: none;
}
.bpi-auth__back:hover { color: var(--bpi-navy); text-decoration: none; }

.bpi-auth__card {
  width: 100%;
  max-width: 400px;
  animation: bpi-auth-fade-up 0.7s ease both;
  animation-delay: 0.1s;
}

.bpi-auth__card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--bpi-navy);
  margin: 0 0 6px;
}
.bpi-auth__card > p {
  color: var(--bpi-body);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.bpi-auth__field { margin-bottom: 18px; }
.bpi-auth__field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bpi-ink);
  margin-bottom: 7px;
}

.bpi-auth__input-wrap { position: relative; }
.bpi-auth__input-wrap > i.bpi-auth__field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bpi-body);
  font-size: 16px;
  pointer-events: none;
}

.bpi-auth__card .form-control {
  padding: 12px 16px 12px 44px !important;
  border-radius: 10px;
  border: 1px solid var(--bpi-border);
  background: #fff;
  font-size: 14.5px;
  height: auto;
}
.bpi-auth__card .form-control:focus {
  border-color: var(--bpi-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.bpi-auth__card .input-group .form-control { padding-right: 44px !important; }
.bpi-auth__card .input-group-text {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: transparent;
  border: none;
  color: var(--bpi-body);
}

.bpi-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.bpi-auth__row .form-check-label { font-size: 13.5px; color: var(--bpi-body); }

.bpi-auth__submit {
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--bpi-navy);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 14px 30px -12px rgba(20, 38, 77, 0.45);
}
.bpi-auth__submit:hover {
  background: var(--bpi-navy-light);
  transform: translateY(-2px);
  color: #fff;
}

@keyframes bpi-auth-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .bpi-auth { flex-direction: column; }
  .bpi-auth__brand { flex: none; max-width: none; padding: 44px 24px; }
  .bpi-auth__badges { margin-top: 20px; }
  .bpi-auth__form-side { padding: 50px 20px; }
  .bpi-auth__back { position: static; display: inline-flex; margin-bottom: 20px; }
  .bpi-auth__card { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bpi-auth__brand-inner, .bpi-auth__card { animation: none; }
}
