/* Login page - simplified Bootstrap-based styling */
:root {
  --brand-primary: #143680;
  --brand-accent: #ff4e02;
  --brand-cta: #25005D;

  /* Modern auth theme colors */
  --auth-ink: #0f172a;
  --auth-muted: rgba(15, 23, 42, 0.7);
  --auth-surface: rgba(255, 255, 255, 0.72);
  --auth-surface-2: rgba(255, 255, 255, 0.55);

  /* Abstract gradient palette */
  --auth-g1: #7c3aed;
  /* violet */
  --auth-g2: #06b6d4;
  /* cyan */
  --auth-g3: #fb7185;
  /* rose */
  --auth-g4: #f59e0b;
  /* amber */
}

.auth-page--login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(1200px 800px at 12% 12%, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0) 60%),
    radial-gradient(1100px 700px at 88% 14%, rgba(6, 182, 212, 0.16) 0%, rgba(6, 182, 212, 0) 55%),
    radial-gradient(1000px 700px at 18% 92%, rgba(251, 113, 133, 0.14) 0%, rgba(251, 113, 133, 0) 55%),
    linear-gradient(180deg, #f7f7ff 0%, #f4f8ff 45%, #f8fbff 100%);
  padding: 24px 0;
}

/* Abstract floating blobs (do not affect layout/scroll) */
.auth-page--login::before,
.auth-page--login::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
}

.auth-page--login::before {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.75), rgba(6, 182, 212, 0.45), rgba(255, 255, 255, 0));
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
}

.auth-page--login::after {
  width: 620px;
  height: 620px;
  right: -220px;
  bottom: -240px;
  background: radial-gradient(circle at 40% 40%, rgba(251, 113, 133, 0.7), rgba(245, 158, 11, 0.4), rgba(255, 255, 255, 0));
  border-radius: 56% 44% 46% 54% / 52% 58% 42% 48%;
}

.auth-page--login .container {
  position: relative;
  z-index: 1;
}

.auth-card {
  border-radius: 18px;
  overflow: visible;
}

/* Glassmorphism card */
.auth-card--glass {
  background: var(--auth-surface);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.16);
}

.auth-card--glass .card-body {
  background: var(--auth-surface-2);
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 340px at 22% 18%, rgba(6, 182, 212, 0.42) 0%, rgba(6, 182, 212, 0) 60%),
    radial-gradient(460px 320px at 88% 22%, rgba(251, 113, 133, 0.35) 0%, rgba(251, 113, 133, 0) 58%),
    linear-gradient(135deg, #0b2a6b 0%, #1a46a7 45%, #3b1b7a 100%);
  color: #fff;
  padding: 48px 32px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  align-items: center;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.55;
}

.auth-brand-panel::before {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.85), rgba(255, 255, 255, 0));
  border-radius: 60% 40% 52% 48% / 52% 58% 42% 48%;
}

.auth-brand-panel::after {
  width: 260px;
  height: 260px;
  right: -110px;
  top: -110px;
  background: radial-gradient(circle at 35% 35%, rgba(6, 182, 212, 0.75), rgba(255, 255, 255, 0));
  border-radius: 42% 58% 45% 55% / 55% 45% 55% 45%;
}

.auth-card--glass .auth-brand-panel {
  background: linear-gradient(135deg, rgba(20, 54, 128, 0.92) 0%, rgba(26, 70, 167, 0.92) 60%, rgba(15, 44, 110, 0.92) 100%);
  backdrop-filter: blur(8px);
}

.auth-brand {
  width: 100%;
}

.auth-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  margin-bottom: 16px;
}

.auth-brand-mark:after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-accent);
  position: absolute;
  right: 8px;
  top: 8px;
}

.auth-brand-title {
  font-size: 26px;
  font-weight: 700;
}

.auth-brand-subtitle {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.auth-logo {
  display: block;
  text-align: center;
  margin-bottom: 8px;
}

.auth-logo img {
  height: 60px;
  width: auto;
}

.auth-title {
  font-weight: 700;
  color: var(--auth-ink);
}

.auth-subtitle {
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-link {
  color: var(--brand-cta);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Form + label polish */
.auth-page--login .form-label {
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(15, 23, 42, 0.78);
  margin-bottom: 6px;
}

.auth-page--login .form-control,
.auth-page--login .form-select {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  color: var(--auth-ink);
  border-color: rgba(203, 213, 225, 0.9);
  transition: box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.auth-page--login .form-control::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.auth-page--login .input-group-text {
  border-radius: 12px;
  color: rgba(15, 23, 42, 0.65);
  border-color: rgba(203, 213, 225, 0.9);
}

/* Keep input-group corners clean */
.auth-page--login .input-group>.input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.auth-page--login .input-group>.form-control:not(:last-child),
.auth-page--login .input-group>.form-select:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.auth-page--login .input-group>.btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.auth-page--login .form-control:focus,
.auth-page--login .form-select:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.14);
}

.auth-page--login .form-control.is-invalid,
.auth-page--login .form-select.is-invalid {
  border-color: rgba(239, 68, 68, 0.65);
}

.auth-page--login .form-control.is-invalid:focus,
.auth-page--login .form-select.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.12);
}

.auth-page--login .btn.btn-outline-secondary {
  border-color: rgba(203, 213, 225, 0.9);
  color: rgba(15, 23, 42, 0.72);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.auth-page--login .btn.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.65);
}

.auth-card--glass .btn.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.auth-card--glass .btn.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.56);
}

.btn-brand {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #fb7185 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.22);
}

.btn-brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  color: #fff;
}

.btn-brand:active {
  transform: translateY(0);
}

.btn-brand:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25), 0 10px 22px rgba(124, 58, 237, 0.22);
}

.auth-messages .alert {
  border-radius: 10px;
  margin-bottom: 12px;
}

.auth-card--glass .auth-messages .alert {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(10px);
}

/* Subtle glass input styling */
.auth-card--glass .form-control,
.auth-card--glass .input-group-text {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-card--glass .form-control:focus {
  background: rgba(255, 255, 255, 0.72);
}

.auth-card--glass .form-control:focus,
.auth-card--glass .form-select:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.14);
}

/* Login tabs polish */
.auth-page--login .nav-tabs {
  border-bottom: 0;
  gap: 8px;
}

.auth-page--login .nav-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.auth-page--login .nav-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95) 0%, rgba(124, 58, 237, 0.95) 45%, rgba(251, 113, 133, 0.95) 100%);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.16);
}

/* Registration Links Section */
.auth-brand-register {
  text-align: center;
}

.auth-brand-register-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-brand-register-subtitle {
  font-size: 12px;
  opacity: 0.85;
}

.auth-brand-register-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-brand-register-link {
  display: inline-block;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.auth-brand-register-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.auth-brand-register-link i {
  font-size: 14px;
}

@media (max-width: 991.98px) {
  .auth-card {
    border-radius: 16px;
  }
}