@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
}
body {
  color: #222222;
  background-image: url("../assests/Vector\ \(33\).svg");
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f0f8ff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}
.form-container {
  background: var(--post-bg);
  padding: 50px;
  border-radius: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 853px;
  height: 1130px;
}
.icon {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.form-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}
.subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--h1);
}
.form-grouppp {
  margin-bottom: 35px;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Urbanist";
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--h1);
}
.form-input {
  width: 100%;
  padding-left: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 18px;
  color: var(--input-txt-clr) !important;
  background-color: var(--input);
}
.form-input::placeholder {
  color: var(--p);
}
input:focus {
  outline: 1px solid #0378a4;
}
select:focus {
  outline: 1px solid #0378a4;
}
.form-grouppp {
  position: relative;
  display: inline-block;
  width: 100%;
}
.form-select {
  width: 100%;
  padding-left: 20px;
  padding-right: 40px;
  height: 70px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: var(--input);
  appearance: none;
  color: var(--p);
  font-family: "Urbanist";
  font-size: 18px;
  font-weight: 600;
  line-height: 21.6px;
  color: var(--input-txt-clr) !important;
}
.custom-select {
  position: relative;
}
.custom-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
}
.form-input::placeholder {
  padding: 0px;
  color: #5a5a5a;
  font-family: "Urbanist";
  font-size: 18px;
  font-weight: 400;
  line-height: 21.6px;
}
.form-input {
  color: var(--input-txt-clr);
  height: 70px;
}
/* .form-select {
  height: 70px;
} */
.flex-container {
  display: flex;
  gap: 1rem;
}
.flex-container > div {
  flex: 1;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-checkbox {
  margin-right: 0.5rem;
  height: 20px !important;
  width: 20px !important;
}
input[type="checkbox"] {
  margin-right: 0.5rem;
  height: 20px !important;
  width: 20px !important;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin: 0;
}
input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 0px;
  left: 4px;
  color: white;
  font-size: 14px;
}
input[type="checkbox"]:hover {
  background-color: #f1f1f1;
}
input[type="checkbox"]:checked {
  background-color: #0378a4;
}
.form-btm-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.remember-labelll {
  font-family: "Urbanist";
  font-size: 18px;
  font-weight: 500;
  line-height: 34.04px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--h1);
}
.form-link {
  color: #0378a4;
  text-decoration: none;
  font-family: Urbanist;
  font-size: 18px;
  font-weight: 500;
  line-height: 34.04px;
}
.form-button {
  height: 58px;
  width: 100%;
  padding: 0.75rem;
  background-color: #0378a4;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.form-button:hover {
  background-color: #2c5282;
}
.password-container {
  position: relative;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}
.password-toggle img {
  width: 20px;
  height: 20px;
}
.subtitle {
  font-size: 35px;
  padding-top: 40px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-container {
    padding: 10px;
  }
  .flex-container {
    flex-direction: column;
  }
}

/* Autofill styles for dark mode */
.form-grouppp input:-webkit-autofill,
.form-grouppp select:-webkit-autofill,
.form-grouppp textarea:-webkit-autofill {
  background-color: var(--input) !important; /* Background color for autofill */
  color: var(--h1) !important; /* Ensure text color is readable */
  -webkit-text-fill-color: var(--h1) !important;
  box-shadow: 0 0 0px 1000px var(--input) inset !important; /* Force background color */
  transition: background-color 5000s ease-in-out, color 5000s ease-in-out; /* Smooth transition */
}
.rembr-fild-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="checkbox"].rembr-fild-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--input);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="checkbox"].rembr-fild-checkbox:checked {
  background-color: #0378a4;
  border-color: #0378a4;
}

input[type="checkbox"].rembr-fild-checkbox:checked::before {
  content: "✓";
  font-size: 16px;
  color: white;
  text-align: center;
}

label.rembr-fild-label {
  font-size: 16px;
  color: var(--h1);
  cursor: pointer;
}
