/* ==========================================================================
   BPS POS MODERN AUTHENTICATION PAGES (2026)
   Login, Register, Forgot Password, Reset Password
   ========================================================================== */

:root {
  --bps-auth-primary: #1a56db;
  --bps-auth-primary-dark: #1442a8;
  --bps-auth-dark: #0f172a;
  --bps-auth-muted: #64748b;
  --bps-auth-border: #e2e8f0;
  --bps-auth-bg: #f4f8ff;
}

body.bps-auth-body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bps-auth-page-wrapper {
  background: radial-gradient(circle at 10% 15%, rgba(220, 235, 255, 0.65) 0%, #f8fafc 100%);
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 15px;
}

.bps-auth-container {
  width: 100%;
  max-width: min(1020px, calc(100vw - 30px));
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(26, 86, 219, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

/* Left Brand Showcase Column */
.bps-auth-showcase {
  flex: 1 1 45%;
  background: linear-gradient(145deg, #1a56db 0%, #0044ab 100%);
  color: #ffffff;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bps-auth-showcase::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.bps-auth-showcase-logo img {
  height: 58px;
  max-width: 220px;
  width: auto;
  margin-bottom: 24px;
  object-fit: contain;
}

.bps-auth-form-wrapper img[alt="BPS POS Logo"] {
  height: 64px;
  max-width: 255px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.bps-auth-form-wrapper form,
.bps-input-wrap,
.bps-input-field,
.bps-btn-auth-submit {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bps-auth-showcase-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.bps-auth-showcase-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.bps-auth-showcase-img {
  max-width: 100%;
  height: auto;
  margin: auto 0 20px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
  border-radius: 10px;
}

.bps-auth-showcase-badges {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Right Form Column */
.bps-auth-form-wrapper {
  flex: 1 1 55%;
  padding: 44px 40px;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bps-auth-header {
  margin-bottom: 26px;
}

.bps-auth-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--bps-auth-dark);
  margin-bottom: 6px;
}

.bps-auth-title .bps-highlight {
  color: var(--bps-auth-primary);
}

.bps-auth-subtitle {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--bps-auth-muted);
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Modern Input Groups */
.bps-input-group {
  position: relative;
  margin-bottom: 18px;
}

.bps-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bps-auth-dark);
  margin-bottom: 6px;
}

.bps-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.bps-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

.bps-input-field {
  width: 100%;
  padding: 11px 40px 11px 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--bps-auth-dark);
  background-color: #f8fafc;
  border: 1.5px solid var(--bps-auth-border);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.bps-input-field:focus {
  background-color: #ffffff;
  border-color: var(--bps-auth-primary);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12);
}

.bps-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.bps-pass-toggle:hover {
  color: var(--bps-auth-primary);
  background-color: rgba(26, 86, 219, 0.08);
}

/* Remember Me & Forgot Password */
.bps-auth-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.bps-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.bps-checkbox-wrap input {
  accent-color: var(--bps-auth-primary);
  width: 16px;
  height: 16px;
}

.bps-forgot-link {
  color: var(--bps-auth-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.bps-forgot-link:hover {
  color: var(--bps-auth-primary-dark);
  text-decoration: underline;
}

/* Submit Button */
.bps-btn-auth-submit {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  background-color: var(--bps-auth-primary);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.28);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.bps-btn-auth-submit:hover {
  background-color: var(--bps-auth-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.38);
}

/* Social Buttons */
.bps-social-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.bps-social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--bps-auth-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.bps-social-auth-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.bps-social-auth-btn img {
  width: 18px;
  height: 18px;
}

/* Auth Bottom Navigation Links */
.bps-auth-footer-links {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.bps-auth-footer-links a {
  color: var(--bps-auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.bps-auth-footer-links a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  html,
  body.bps-auth-body {
    width: 100%;
    overflow-x: hidden;
  }
  .bps-auth-page-wrapper {
    align-items: flex-start;
    overflow-x: hidden;
    padding: 60px 15px 48px;
  }
  .bps-auth-container {
    flex-direction: column;
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    min-width: 0;
  }
  .bps-auth-showcase {
    padding: 30px 24px;
  }
  .bps-auth-form-wrapper {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 30px 24px;
  }
  .bps-auth-form-wrapper form,
  .bps-input-wrap,
  .bps-input-field,
  .bps-btn-auth-submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .bps-auth-title {
    font-size: 22px;
  }
  .bps-auth-subtitle {
    overflow-wrap: anywhere;
  }
  .bps-auth-flex-row,
  .bps-auth-footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
  .bps-auth-flex-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .bps-auth-footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
  .bps-social-auth-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GLOBAL ERROR & VALIDATION REPLACEMENT (ROYAL BLUE THEME - NO RED)
   ========================================================================== */

/* Toastr Notification Overrides (Blue Theme) */
#toast-container > .toast-error,
.toast.toast-error {
  background-color: #1a56db !important;
  background-image: none !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(26, 86, 219, 0.4) !important;
  border-left: 6px solid #60a5fa !important;
  opacity: 1 !important;
  padding: 16px 20px 16px 20px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

#toast-container > .toast-warning,
.toast.toast-warning {
  background-color: #0284c7 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.35) !important;
  border-left: 6px solid #38bdf8 !important;
  opacity: 1 !important;
  padding: 16px 20px 16px 20px !important;
}

#toast-container > .toast-info,
.toast.toast-info {
  background-color: #0f172a !important;
  background-image: none !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  border-left: 6px solid #1a56db !important;
  opacity: 1 !important;
}

/* Inline Validation Errors - Replace Red with Vibrant Blue */
label.error,
span.error,
.error-message,
.invalid-feedback,
.text-danger,
.danger {
  color: #1a56db !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-top: 5px !important;
  display: block !important;
}

/* Invalid Input Borders */
input.error,
select.error,
textarea.error,
.form-control.is-invalid,
.is-invalid {
  border-color: #1a56db !important;
  background-color: #f0f7ff !important;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15) !important;
}

/* Override Any Red Danger Elements */
.btn-outline-danger {
  border-color: #1a56db !important;
  color: #1a56db !important;
}
.btn-outline-danger:hover {
  background-color: #1a56db !important;
  color: #ffffff !important;
}
.btn-danger {
  background-color: #1a56db !important;
  border-color: #1a56db !important;
  color: #ffffff !important;
}
.badge.bg-danger {
  background-color: #1a56db !important;
  color: #ffffff !important;
}

.custom-label .bps-required-star {
  color: #1a56db !important;
  display: inline-block !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin-left: 4px !important;
  margin-top: 0 !important;
  vertical-align: baseline !important;
}

@media (max-width: 1199.98px) {
  body.bps-auth-body .bps-auth-page-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.bps-auth-body .bps-auth-container {
    flex: 0 0 auto !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.bps-auth-body .bps-auth-form-wrapper {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.bps-auth-body .bps-auth-header,
  body.bps-auth-body .bps-auth-form-wrapper form,
  body.bps-auth-body .bps-input-wrap,
  body.bps-auth-body .bps-input-field,
  body.bps-auth-body .bps-btn-auth-submit {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 575.98px) {
  body.bps-auth-body .bps-auth-container {
    width: min(calc(100vw - 32px), 358px) !important;
    max-width: min(calc(100vw - 32px), 358px) !important;
  }

  body.bps-auth-body .bps-auth-form-wrapper {
    padding: 28px 18px !important;
  }

  body.bps-auth-body .bps-auth-form-wrapper img[alt="BPS POS Logo"] {
    height: 60px;
    max-width: 240px;
  }
}
