/* Auth pages — minimal Boostify brand shell */
:root {
  --auth-brand: #3182bd;
  --auth-brand-dark: #09428c;
  --auth-brand-soft: #e8f1f8;
  --auth-brand-mist: #f3f8fc;
  --auth-ink: #0b2a4a;
  --auth-muted: #64748b;
  --auth-line: #e2e8f0;
}

body {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif !important;
  color: var(--auth-ink);
  background: var(--auth-brand-mist) !important;
}

body *:not(i):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.bi):not([class*="bi-"]):not([class^="ki-"]):not([class*=" ki-"]):not(.la):not([class^="la-"]):not(.svg-icon) {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif !important;
}

/* Kill old decorative vectors / negative offsets */
.auth-shell .top-vector,
.auth-shell .bottom-vector,
.login-section .top-vector,
.login-section .bottom-vector,
.register-section .top-vector,
.register-section .bottom-vector {
  display: none !important;
}

.authImage {
  background: none !important;
  min-height: 100vh;
}

.auth-shell,
.login-section.auth-shell,
.register-section.auth-shell {
  margin-top: 0 !important;
  background: transparent !important;
  overflow: hidden;
  min-height: 100vh;
}

.auth-shell > .row {
  min-height: 100vh;
}

/* —— Left brand panel —— */
.auth-brand-panel {
  position: relative;
  min-height: 100vh;
  padding: 2.75rem 2.75rem 2rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, #09428c 0%, #3182bd 52%, #5ba3d4 100%);
}

.auth-brand-panel__glow {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.auth-brand-panel__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.auth-brand-panel__logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
}

.auth-brand-panel__logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.auth-brand-panel__content {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  padding: 3rem 0;
}

.auth-brand-panel__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.auth-brand-panel__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.auth-brand-panel__text {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22rem;
}

.auth-brand-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.auth-brand-panel__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.auth-brand-panel__list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.auth-brand-panel__foot {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Form side —— */
.auth-form-side {
  background: #fff;
  min-height: 100vh;
}

.auth-form-wrap,
.login-section .login-form,
.register-section .register-form {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 3rem 1.5rem !important;
  position: relative;
  z-index: 1;
  background: transparent !important;
}

@media (min-width: 992px) {
  .auth-form-wrap,
  .login-section .login-form,
  .register-section .register-form {
    padding: 3.5rem 2.5rem !important;
  }
}

.auth-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--auth-brand);
  margin: 0;
}

.auth-title,
.login-section h1,
.register-section h1,
.forget-password-section h1,
.reset-password-section h1 {
  color: var(--auth-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  font-size: 1.75rem !important;
  margin: 0;
  text-align: left !important;
}

.auth-subtitle {
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.auth-muted,
.login-section .text-gray-700,
.register-section .text-gray-700 {
  color: var(--auth-muted) !important;
  font-size: 0.925rem;
}

.mb-6 {
  margin-bottom: 1.75rem !important;
}

/* Buttons */
.login-btn,
.register-btn,
.reset-link,
.forget-password-section .btn.btn-primary,
.reset-password-section .btn.btn-primary,
.authImage .btn.login-btn,
.authImage .btn.register-btn {
  background: linear-gradient(90deg, var(--auth-brand), var(--auth-brand-dark)) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 1.25rem !important;
  box-shadow: 0 12px 28px rgba(9, 66, 140, 0.18);
  transition: all 0.3s ease-in-out !important;
}

.login-btn:hover,
.register-btn:hover,
.reset-link:hover,
.forget-password-section .btn.btn-primary:hover,
.reset-password-section .btn.btn-primary:hover,
.login-btn:focus,
.register-btn:focus,
.reset-link:focus {
  filter: brightness(1.06);
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(9, 66, 140, 0.24);
  transform: translateY(-1px);
}

.auth-social-btn {
  background: #fff !important;
  border: 1px solid var(--auth-line) !important;
  color: var(--auth-ink) !important;
  border-radius: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease-in-out !important;
}

.auth-social-btn:hover {
  border-color: var(--auth-brand) !important;
  color: var(--auth-brand-dark) !important;
  background: var(--auth-brand-mist) !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--auth-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}

/* Links */
.login-section .link-info,
.register-section .link-info,
.forget-password-section .link-info,
.reset-password-section .link-info,
.login-section a.link-info,
.register-section a.link-info,
.copyright a,
.login-section .copyright a,
.register-section .copyright a,
.form-check-label a {
  color: var(--auth-brand) !important;
  transition: color 0.3s ease-in-out;
  font-weight: 600;
}

.login-section .link-info:hover,
.register-section .link-info:hover,
.forget-password-section .link-info:hover,
.reset-password-section .link-info:hover,
.copyright a:hover {
  color: var(--auth-brand-dark) !important;
}

/* Inputs */
.login-section .form-label,
.register-section .form-label,
.forget-password-section .form-label,
.reset-password-section .form-label {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  margin-bottom: 0.4rem !important;
}

.login-section .form-control,
.register-section .form-control,
.forget-password-section .form-control,
.reset-password-section .form-control,
.auth-phone-field .form-control {
  border-radius: 0.875rem !important;
  border: 1px solid var(--auth-line) !important;
  background: #fafbfc !important;
  padding: 0.75rem 1rem !important;
  min-height: 48px;
  box-shadow: none !important;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out !important;
}

.login-section .form-control:focus,
.register-section .form-control:focus,
.forget-password-section .form-control:focus,
.reset-password-section .form-control:focus,
.auth-phone-field .form-control:focus {
  border-color: var(--auth-brand) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(49, 130, 189, 0.14) !important;
}

.login-section .form-check-input:checked,
.register-section .form-check-input:checked {
  background-color: var(--auth-brand) !important;
  border-color: var(--auth-brand) !important;
}

.auth-check .form-check-label {
  color: var(--auth-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.login-section .logo-form-size,
.register-section .logo-form-size,
.forget-password-section .logo-form-size,
.reset-password-section .logo-form-size {
  max-height: 40px !important;
  max-width: 160px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Phone / intl-tel-input — fix flag + placeholder overlap */
.auth-phone-field .iti,
.register-section .iti,
.login-section .iti {
  display: block !important;
  width: 100% !important;
}

.auth-phone-field .iti__flag-container,
.register-section .iti__flag-container {
  z-index: 2;
}

.auth-phone-field .iti__selected-flag,
.register-section .iti__selected-flag {
  padding: 0 10px 0 12px !important;
  border-radius: 0.875rem 0 0 0.875rem;
  background: transparent !important;
}

.auth-phone-field .iti--separate-dial-code .iti__selected-dial-code,
.register-section .iti--separate-dial-code .iti__selected-dial-code {
  margin-left: 6px;
  color: var(--auth-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-phone-field .iti input.form-control,
.auth-phone-field .iti input[type="tel"],
.register-section .iti input.form-control,
.register-section .iti input[type="tel"] {
  width: 100% !important;
}

.auth-phone-field .iti__country-list,
.register-section .iti__country-list {
  border-radius: 0.875rem;
  border: 1px solid var(--auth-line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

/* Hide old stock photo panels if any remnant classes remain */
.login-img,
.register-img,
.forget-password-img,
.reset-password-img {
  display: none !important;
}

@media (max-width: 991.98px) {
  .auth-form-side {
    background:
      radial-gradient(ellipse at top left, rgba(49, 130, 189, 0.08), transparent 50%),
      linear-gradient(180deg, var(--auth-brand-mist), #fff 40%);
  }

  .auth-title,
  .login-section h1,
  .register-section h1 {
    text-align: center !important;
  }

  .auth-kicker,
  .auth-subtitle {
    text-align: center;
  }
}
