.home {
  background:
    linear-gradient(
      90deg,
      rgba(var(--overlay), 0.95) 0%,
      rgba(var(--overlay), 0.6) 50%,
      rgba(var(--overlay), 0) 100%
    ),
    url("../images/signup/first-signup.jpeg");
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: cover;
  height: 70vh;
}
.form-control::placeholder {
  color: #ffffff;
}
.email label {
  color: var(--text-muted) !important;
}
.password label {
  color: var(--text-muted) !important;
}
.name label {
  color: var(--text-muted) !important;
}
.passwordcon label {
  color: var(--text-muted) !important;
}
.image {
  border: 1px solid;
}
.form {
  border: 1px solid;
}
.divider {
  display: flex;
  align-items: center;
  gap: 15px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #26364d;
}

.divider span {
  font-size: 20px;
}
.b1,
.b2 {
  border: 0px;
  color: var(--text);
}

/* .input-box {
  position: relative;

  margin-top: 15px;
}

.input-box input {
  padding: 8px 45px;
  border: 1px solid #263e59;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.input-box input::placeholder {
  color: var(--text);
}

.input-box > i:first-child {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
}

.input-box button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
} */
.input-box {
  position: relative;
  margin-top: 20px; /* Slightly increased to give room for the floating label */
}

.input-box input {
  padding: 12px 45px;
  border: 1px solid #263e59;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.input-box input:focus {
  background: var(--surface);
  color: var(--text);
  border-color: var(--bs-primary);
  box-shadow: none;
  outline: none;
}

/* Default label position (centered like a placeholder) */
.input-box label {
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  pointer-events: none; /* Allows clicks to pass through to the input */
  transition: all 0.2s ease;
  padding: 0 6px;
  background: transparent;
}

/* Floating state: moves to top-left when focused OR when text is typed */
.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
  top: 10px;
  left: 30px;
  font-size: 0.7rem;
  color: var(--text);
  border-radius: 4px;
}

.input-box > i:first-child {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  z-index: 2;
}

.input-box button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}
.valid_input {
  border: 1px solid #198754 !important;
  outline: none;
}

.invalid_input {
  border: 1px solid #dc3545 !important;
  outline: none;
}

.invalid_input_feedback {
  width: 100%;
  font-size: 0.875em;
  color: #dc3545;
}
.btn-surface {
  background-color: var(--surface) !important;
}
.btn-surface:hover {
  background-color: var(--primary-hover) !important;
  color: var(--text-on-primary);
}
.btn-primary {
  transition: all 0.5s ease-in;
}
.btn-primary:hover {
  color: var(--overlay) !important;
}
@media (max-width: 991.98px) {
  .right {
    display: contents;
  }
}
.signup .form-control:-webkit-autofill,
.signup .form-control:-webkit-autofill:hover,
.signup .form-control:-webkit-autofill:focus,
.signup .form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #12203a inset !important;
  -webkit-text-fill-color: hsl(0, 0%, 100%) !important;
  transition: background-color 5000s ease-in-out 0s;
}
/* Smooth color transition for input and eye icons */
.input-box > i:first-child,
.input-box button {
  transition: color 0.2s ease;
}

/* Valid state */
.input-box:has(input.valid_input) > i:first-child,
.input-box:has(input.valid_input) button,
.input-box:has(input.valid_input) .eye-icon {
  color: #198754 !important;
}

/* Invalid state */
.input-box:has(input.invalid_input) > i:first-child,
.input-box:has(input.invalid_input) button,
.input-box:has(input.invalid_input) .eye-icon {
  color: #dc3545 !important;
}
.fullname i {
  color: var(--primary) !important;
}
.email i {
  color: var(--primary) !important;
}

.password i {
  color: var(--primary) !important;
}
.passwordcon i {
  color: var(--primary) !important;
}
