
.auth-page header.py-1.px-3.text-bg-dark {
  border-bottom: 1px solid #fff;  /* Only bottom border */
  border-radius: 0;    /* Rounded only on bottom corners */
  z-index: 1040;
}

.form-signin-wrapper, .form-signin {
  font-size: 1.2rem;
}

.form-signin {
  max-width: 25em;
  padding: 1em;
}

.form-signin-container {
  max-width: 445px;
}


.form-signin-container img {
  width: 100%;
}

.form-signin-wrapper {
  padding: 1rem;
}

.form-signin .form-control,
.form-signin-wrapper .form-control {
  border: 1px solid #fff;
  border-radius: 0.75rem;
  background-color: transparent;
  color: #fff;
  margin-bottom: 0 !important;
}

.form-signin .form-floating:focus-within,
.form-signin-wrapper .form-floating:focus-within {
  z-index: 2;
}

.form-signin .top-input,
.form-signin-wrapper .top-input {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin .bottom-input,
.form-signin-wrapper .bottom-input {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-signin .middle-input,
.form-signin-wrapper .middle-input {
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

.form-register-container {
  max-width: 515px;
}

.form-register-wrapper, .form-register {
  font-size: 1.2rem;
}

.form-register {
  max-width: 30em;
  padding: 1em;
}
.form-register-wrapper {
  padding: 1rem;
}
.form-register .form-control,
.form-register-wrapper .form-control {
  border: 1px solid #fff;
  border-radius: 0.75rem;
  background-color: transparent;
  color: #fff;
  margin-bottom: 0 !important;
}
.form-register .form-floating:focus-within,
.form-register-wrapper .form-floating:focus-within {
  z-index: 2;
}

.form-register .top-input,
.form-register-wrapper .top-input {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-register .bottom-input,
.form-register-wrapper .bottom-input {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-register .middle-input,
.form-register-wrapper .middle-input {
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

#forgotPasswordModal .form-control {
    background-color: transparent !important; /* Match the modal's background */
    color: #ffffff !important;                /* Ensure text is white */
    border-color: #495057;                    /* Use a consistent dark border */
}

/* Style the floating label to be light grey */
#forgotPasswordModal .form-floating > label {
    color: #adb5bd;
}
/* Dark theme coloring for dark background */
[data-bs-theme="dark"] .form-signin .form-floating .form-control,
[data-bs-theme="dark"] .form-signin-wrapper .form-floating .form-control {
  background-color: #212529;
  color: #dee2e6;
}

/* Floating label for gender inside custom input */
.gender-input {
  position: relative;
  background-color: #212529;
  border: 1px solid #fff;
  border-radius: 0 !important;
  color: #dee2e6;
  height: auto;
  padding-top: 1.3rem;
  padding-bottom: 1.2rem;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 3.2rem;
}

.gender-label {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  color: #6c757d;
  font-size: 1rem;
  pointer-events: none;
  transition: all .2s;
  z-index: 2;
  background: #212529;
  padding: 0 3px;
}

/* Float the label when radios in focus/checked */
.gender-input:focus-within .gender-label {
  top: -0.9rem;
  left: 0.7rem;
  font-size: 0.85em;
  color: #fff;
  background: #212529;
  padding: 0 4px;
}

.gender-radio-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  min-height: 1.8em;
  margin-top: 0;
}

.gender-radio-options > .d-flex.align-items-center.position-relative {
  display: flex !important;
  align-items: center !important;
  position: relative;
  height: auto;
}

.gender-radio-options label.form-check-label {
  font-size: 0.97em;
  padding-left: 1.5em;
  line-height: 1.2;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

/* Custom radio box appearance */
input[type="radio"].custom-radio {
  opacity: 0;
  position: absolute;
}

input[type="radio"].custom-radio + label::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  border: 2px solid #fff;
  border-radius: 4px;
  background: transparent;
  box-sizing: border-box;
}

/* Custom checkmark when checked */
input[type="radio"].custom-radio:checked + label::after {
  content: "✓";
  position: absolute;
  left: 0.44em;
  top: 50%;
  transform: translateY(-55%);
  font-size: 0.75em;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}

/* Default radio style for fallback/checkboxes */
.form-check-input[type="radio"] {
  accent-color: #fff !important;
  width: 1.2em !important;
  height: 1.2em !important;
  border-radius: 0 !important;
  border-color: #fff !important;
}

/* Password visibility toggle */
.password-toggle-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
}

/* Increase padding in the main body to make the modal taller */
#forgotPasswordModal .modal-body {
    padding-top: 5rem;      /* Increase from default */
    padding-bottom: 5rem;   /* Increase from default */
}

/* Optional: Add more padding to the header and footer for balance */
#forgotPasswordModal .modal-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#forgotPasswordModal .modal-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/*  CUSTOM STYLING FOR THE VANILLAJS DATEPICKER*/
/* 1. Make the datepicker width match the form */
.datepicker-main {
    width: 100%;
}

/* Dark theme to match your page */
.datepicker {
    background-color: #212529; /* Dark background */
    border-color: #495057;
    padding: 0.5rem; /* Add some padding for a less crowded look */
}

.datepicker-header .datepicker-title,
.datepicker-header .datepicker-controls .button,
.datepicker-view .days .day,
.datepicker-view .weeks .week, /* Style the week numbers */
.datepicker-view .dow {
    color: #dee2e6; /* Light text for dates and titles */
    font-weight: 500;
}

.datepicker-header .datepicker-controls .button:hover,
.datepicker-view .days .day:not(.disabled):not(.selected):hover {
    background-color: #343a40; /* Darker hover effect */
    border-radius: 0.25rem;
}

/* Highlight "today" with your brand's blue */
.datepicker-view .days .day.today:not(.selected) {
    background-color: #209CEE;
    color: #fff;
    border-radius: 0.25rem;
}

/* Highlight the currently selected date */
.datepicker-view .days .day.selected {
    background-color: #0d6efd; /* Use the primary button color */
    color: #fff;
    font-weight: bold;
    border-radius: 0.25rem;
}

/* Dim disabled/previous/next month dates */
.datepicker-view .days .day.disabled,
.datepicker-view .days .day.prev,
.datepicker-view .days .day.next {
    color: #6c757d;
}
.form-floating .datepicker-icon {
  position: absolute;
  top: 50%;
  right: 15px; /* Adjust as needed */
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d; /* A muted grey color */
  z-index: 3; /* Ensure it's on top and clickable */
}

/* Optional: Make the icon slightly lighter on hover */
.form-floating .datepicker-icon:hover {
    color: #adb5bd;
}

/* Slide the checklist in/out */
#password-checklist.slide-checklist {
  transform: translateX(150%);
  opacity: 0;
  transition: transform 2s cubic-bezier(.4,2,.2,1), opacity 0.3s;
  position: relative;
  z-index: 10;
  pointer-events: none;
}
#password-checklist.slide-checklist.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}

/* css for login modals and flip modals*/
/* CSS FOR AUTH FLIP MODAL */
.auth-modal-dialog {
    perspective: 1200px;
}
.auth-flip-container {
    transition: transform 0.7s;
    transform-style: preserve-3d;
    position: relative;
    background-color: transparent;
    border: none;
}
.auth-flip-container.is-flipped {
    transform: rotateY(180deg);
}
.auth-front, .auth-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Apply your dark theme styling to the faces */
    background-color: #0c0d0f;
    border: 1px solid #495057;
    border-radius: var(--bs-modal-border-radius);
    overflow: hidden; /* Prevents content from spilling out */
}
.auth-back {
    transform: rotateY(180deg);
}
/* Style for the links that trigger the flip */
.nav-action {
    color: #209CEE !important;
    text-decoration: none;
    font-weight: 500;
}
.nav-action:hover {
    text-decoration: underline;
}
/* Custom Tom Select Dark Theme Styling */
.form-floating > .ts-wrapper .ts-control {
    /* Match Bootstrap's floating input height */
    min-height: calc(3.5rem + 2px);
    /* Match Bootstrap's padding and vertically center the text */
    padding: 1rem 0.75rem;
    display: flex;
    align-items: center;
}

.ts-control {
    background-color: #212529 !important;
    border: 1px solid #fff;
    border-radius: 0.75rem;
}

/* This correctly targets the wrapper to apply the bottom-input style */
.ts-wrapper.bottom-input .ts-control {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.ts-control, .ts-control input, .ts-control .item {
    color: #dee2e6;
}

.ts-control.disabled, .ts-control.disabled input {
    background-color: #212529 !important;
    opacity: 1rem !important;
	border: 1px solid #fff !important;
}

.ts-dropdown {
    background: #212529;
    border: 1px solid #495057;
    color: #dee2e6;
}

.ts-dropdown .option {
    padding: 8px 12px;
}

.ts-dropdown .option:hover, .ts-dropdown .active {
    background-color: #343a40;
}

.ts-dropdown .no-results {
    color: #6c757d;
    padding: 8px 12px;
}