html, body {
   height: 100%;
   margin: 0;
}

body {
   background-color: #0a0e2a;
   background: linear-gradient(rgba(10, 14, 42, 0.4), rgba(10, 14, 42, 0.2));
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
}

body .signup-container {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body .signup-container.active {
  display: flex;
}

.card {
    border-radius: 28px;
}

.signup-card {
   background-color: white;
   border-radius: 28px;
   padding: 3rem;
   width: 100%;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-img {
   height: 80px;
   margin-bottom: 1.5rem;
}

.required-label::after {
   content: " *";
   color: red;
   font-weight: normal;
   font-size: 0.95em;
   vertical-align: top;
}

.form-control {
   border-radius: 6px;
}

.form-control:focus {
   box-shadow: none;
   border: 2px solid rgb(0, 195, 255);
}

.inputs input {
    width: 40px;
    height: 40px
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0
}


.global-spinner-container { 
   position: fixed; 
   top: 0; 
   left: 0; 
   width: 100%; 
   height: 100%; 
   background: rgba(255,255,255,0.8); 
   z-index: 9999; 
   display: none; 
   align-items: center; 
   justify-content: center; 
}

.spinner { 
   width: 40px; 
   height: 40px; 
   border: 4px solid #f3f3f3; 
   border-top: 4px solid #007bff; 
   border-radius: 50%; 
   animation: spin 1s linear infinite; 
}

@keyframes spin { 
   0% { transform: rotate(0deg); } 
   100% { transform: rotate(360deg); } 
}

.footer-links {
   font-size: 0.875rem;
   color: #5f6368;
}

.form-control.is-invalid {
   border-color: #dc3545;
}
.form-control.rounded {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    margin: 0 4px;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
}
.form-floating.position-relative {
  position: relative;
}

.form-floating.position-relative .form-control {
  padding-right: 3rem;
}

.hidden {
   display: none;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #6c757d;
  z-index: 10;
  pointer-events: auto;
}

.password-toggle:hover {
   color: #343a40;
}

.btn-outline-light,
.btn-warning {
   font-weight: bold;
   min-width: 220px;
   margin: 10px;
}

.btn-danger {
   min-width: 100px;
   margin: 10px;
} 

.section-title {
   color: #1a1802;
}

.error-message {
   margin-bottom: 1rem;
   font-size: 0.875rem;
}

.btn-next {
   border-radius: 20px;
   padding-left: 24px;
   padding-right: 24px;
}
.signup-wrapper {
  width: 100%;
  max-width: 900px;
}

.menu-bar-content {
  padding: 0 3rem;
}
.menu-bar {
  background-color: transparent;
  border-top: none;
  padding: 12px 0;
  margin-top: 10px;
}

.menu-bar a {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.menu-bar a:hover {
  color: #0d6efd;
  background-color: transparent;
}
/* Password strength indicators container */
.password-rules {
   margin-top: 12px;
   padding: 20px;
   background-color: #f8f9fa;
   border-radius: 6px;
   border-left: 4px solid #dee2e6;
   transition: border-color 0.3s ease;
}

.password-rules.all-met {
   border-left-color: #198754;
   background-color: #f0f9f4;
}

.password-rules .rules-title {
   font-size: 0.875rem;
   color: #6c757d;
   margin-bottom: 12px;
   font-weight: 500;
}

.password-rules ul {
   margin: 0;
   padding: 0;
   list-style: none;
}

.password-rules li {
   margin: 8px 0;
   position: relative;
   font-size: 0.875rem;
   color: #6c757d;
   padding-left: 24px;
   transition: all 0.3s ease;
   line-height: 1.4;
}

/* Default state - requirement not met */
.password-rules li::before {
   content: "✗";
   position: absolute;
   left: 0;
   top: 0;
   color: #dc3545;
   font-weight: bold;
   font-size: 1rem;
   transition: all 0.3s ease;
}

/* Met state - requirement satisfied */
.password-rules li.met {
   color: #198754;
   font-weight: 500;
}

.password-rules li.met::before {
   content: "✓";
   color: #198754;
}

/* Password match indicator */
.password-match {
   margin-top: 12px;
   padding: 10px 16px;
   border-radius: 6px;
   font-size: 0.875rem;
   font-weight: 500;
   background-color: #f8d7da;
   color: #721c24;
   border: 1px solid #f5c6cb;
   transition: all 0.3s ease;
   text-align: center;
}

/* Password match - when passwords match */
.password-match.met {
   background-color: #d1eddd;
   color: #0f5132;
   border-color: #badbcc;
}

/* Password strength meter*/
.password-strength-meter {
   margin-top: 8px;
   height: 4px;
   background-color: #e9ecef;
   border-radius: 2px;
   overflow: hidden;
   transition: all 0.3s ease;
}

.password-strength-meter .strength-bar {
   height: 100%;
   width: 0%;
   background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #198754 100%);
   transition: width 0.3s ease;
   border-radius: 2px;
}

/* Password strength levels */
.password-strength-meter.weak .strength-bar {
   width: 25%;
   background-color: #dc3545;
}

.password-strength-meter.fair .strength-bar {
   width: 50%;
   background-color: #fd7e14;
}

.password-strength-meter.good .strength-bar {
   width: 75%;
   background-color: #ffc107;
}

.password-strength-meter.strong .strength-bar {
   width: 100%;
   background-color: #198754;
}

/* Real-time error styling that works with your existing invalid feedback */
.password-rules li.checking {
   color: #0d6efd;
   font-style: italic;
}

.password-rules li.checking::before {
   content: "⏳";
   color: #0d6efd;
}

/* Focus enhancement for password fields */
.form-floating.position-relative .form-control:focus+label {
   color: rgb(0, 195, 255);
}

/* Responsive adjustments */
@media (max-width: 768px) {
   .password-rules {
      padding: 16px;
      margin-top: 10px;
   }

   .password-rules li {
      font-size: 0.8125rem;
      margin: 6px 0;
   }
}
.input-group.is-invalid {
   border: 2px solid #dc3545;
   border-radius: 6px;
}

.input-group.is-invalid .form-control {
   border: none;
}