@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
:root {
  --white-color: #fff;
  --login-hover: #99fcaf;
  --black-color: #000;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--white-color);
  font-family: "DM Sans", sans-serif;
}
.dropdownbtn {
  background: transparent;
  border: none;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  padding: 10px;
}
.logo-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-size: 1.4rem;
  margin: 1rem;
}
.medcheck {
  text-decoration: none;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  font-weight: 600;
}
.home {
  display: none;
}
/* signin */
.bg {
  max-width: 100%;
}
.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bg-image {
  position: relative;
}
.form {
  height: 1000px;
  position: absolute;
  right: -5px;
  top: 130px;
  width: 416px;
  backdrop-filter: blur(18px);
  background-color: rgba(0, 0, 0, 0);
  border: 1.5px groove var(--white-color);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 30px 52px;
  margin: 1rem;
  border-radius: 25px;
  text-align: center;
}
.sign-in-container b {
  margin-bottom: 25px;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #222;
  line-height: 36px;
}
/* Input fields */
.form-group {
  position: relative;
  padding-block: 0.5rem;
}
.input-wrapper {
  max-width: 100%;
  display: flex;
  align-items: center;
  background-color: #fafafa;
  border: 1px solid #808080;
  border-radius: 25px;
  padding: 15px 20px;
  gap: 15px;
  transition: border-color 0.2s ease;
}
.input-wrapper:focus-within {
  border-color: #00e331;
  outline: 2px solid rgba(0, 227, 49, 0.1);
  outline-offset: 2px;
}
.input-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.input-wrapper input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: #000;
}
.input-wrapper input::placeholder {
  color: #b3b3b3;
  font-weight: 400;
  max-width: 100%;
}
/* Options */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
  padding-block: 10px;
}
.options a {
  color: green;
  text-decoration: none;
  white-space: nowrap;
}
.options label {
  color: #666;
}
.btn {
  width: 242px;
}
/* Container */
.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
/* Hide default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkmark {
  width: 25px;
  height: 25px;
  font-size: 16px;
  background-color: transparent;
  border: 1px solid #00c853;
  border-radius: 4px;
  margin-right: 8px;
  display: inline-block;
  position: relative;
}
.checkbox-container input:checked ~ .checkmark {
  background-color: #00c853;
  border: none;
}
.checkmark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}
.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}
/* Login button */
.btn {
  width: 100%;
  padding: 25px;
  border: none;
  border-radius: 15px;
  background: #009200;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:focus {
  border: 2px solid #00ff37;
}
/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #888;
  margin: 20px 0;
  padding-block: 3.5em;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.5);
}
.divider:not(:empty)::before {
  margin-right: 10px;
}
.divider:not(:empty)::after {
  margin-left: 10px;
}
/* Social buttons */
.social-btn {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: brightness(10);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #999;
  box-shadow: 0px 2px 4px #ccc;
}
.social-btn img,
.social-btn i {
  margin-right: 10px;
  font-size: 18px;
}
.social-btn a {
  max-width: 100%;
  text-decoration: none;
  color: var(--black-color);
  font-weight: 700;
  font-size: 18px;
}
.social-btn:hover {
  background: #e5feeb !important;
}
/* Signup link */
.signup {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 500;
  color: var(--black-color);
}
.signup a {
  color: green;
  text-decoration: none;
  font-weight: bold;
}
@media (max-width: 884px) {
  .bg {
    height: 100vh;
  }
}
@media (max-width: 768px) {
  .bg {
    display: none;
  }
  .form {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    position: static;
    top: auto;
    right: auto;
  }
  .signup {
    font-size: 24px;
    color: #333;
  }
  .sign-in-container {
    margin: 0px;
  }
}
@media (max-width: 500px) {
  .medcheck {
    font-size: 20px;
  }
  .home {
    display: block;
  }
  .bg {
    display: none;
  }
  .form {
    height: 100%;
    margin: 0px auto;
    border: none;
    box-shadow: none;
  }
  .sign-in-container b {
    font-size: 28px;
    letter-spacing: -0.03em;
    line-height: 32px;
    color: #197c1d;
    text-align: center;
  }
  .social-btn {
    gap: 0px;
  }
  .social-btn a {
    margin: 0 auto;
    font-size: 16px;
  }
  .input-box {
    width: 340px;
  }
  .form {
    padding-block: 1rem;
  }
  .signup {
    font-size: 16px;
    display: flex;
    gap: 10px;
    white-space: nowrap;
  }
  .divider {
    padding-block: 0px;
  }
  .btn {
    background: #009200;
  }
}
