@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  background: linear-gradient(to right, #dce4ed, #006eff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-container {
  padding-top: 1rem;
}

.login-card {
  width: 450px;
  background: rgb(255 255 255 / 31%);
  padding: 2rem;
  border-radius: 10px;
  position: relative;
}

/* .login-card::before {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  inset: 0;
  transform: rotate(-5deg);
  z-index: -1;
} */

.login-card-logo {
  margin-bottom: 1rem;
}

.login-card-logo img {
  width: 100px;
}

.login-card-logo,
.login-card-header,
.login-card-footer {
  text-align: center;
}

.login-card a {
  text-decoration: none;
  color: #5a9cf3;
}

.login-card a:hover {
  text-decoration: underline;
}

.login-card-header {
  margin-bottom: 1rem;
  font-size: 20px;
  font-weight: bold;
}

.login-card-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.login-card-header h1 + div {
  font-size: calc(1rem * 0.8);
  opacity: 0.8;
}

.login-card-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card-form .form-item {
  position: relative;
}

.login-card-form .form-item .form-item-icon {
  position: absolute;
  top: 0.6rem;
  left: 1.4rem;
  font-size: 1rem;
  opacity: 0.4;
}

.login-card-form .checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
}

.login-card-form .form-item-other {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: calc(1rem * 0.8);
  margin-bottom: 0.5rem;
}

.login-card-footer {
  margin-top: 1.5rem;
  font-size: calc(1rem * 0.8);
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"] {
  border: none;
  outline: none;
  background: rgb(255 255 255 / 87%);
  padding: 0.5rem 1.5rem;
  padding-left: calc(1rem * 3.5);
  border-radius: 100px;
  width: 100%;
  transition: background 0.5s;
}

.login-card input:focus {
  background: white;
  border: solid rgb(190 198 209);
  border-width: 1px 1px 1px 1px;
}

.login-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: black;
}

.login-card-form button {
  background: black;
  color: white;
  padding: 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background 0.5s;
}

.login-card-form button:hover {
  background-color: #006eff;
  /* cursor: pointer; */
  /* font-weight: bold; */
  color: #ffffff;
}

.login-card-social {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.login-card-social > div {
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: calc(1rem * 0.8);
}

.login-card-social-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.login-card-social-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  transition: all 0.5s;
}

.login-card-social-btns a:hover {
  background: white;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  body {
    padding: 2rem 0;
  }

  .login-card {
    width: 300px;
    padding: 2rem;
  }
}
/* Hide the default checkbox */
.custom-checkbox input[type="checkbox"] {
  display: none;
}

/* Create a custom checkbox */
.custom-checkbox {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
}

/* Create the checkmark/indicator (hidden when not checked) */
.custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: white;
  border: solid rgb(190 198 209);
  border-width: 1px 1px 1px 1px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

/* When the checkbox is checked, add a blue background */
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background-color: #2196f3;
}

/* Add a checkmark/indicator icon (hidden when not checked) */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark/indicator when checked */
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.custom-checkbox .checkmark:after {
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-card input[type="text"].error ,
.login-card input[type="password"].error ,
.login-card input[type="email"].error {
  border-radius: 100px;
  /* box-shadow: none; */
  border-color: red !important;
  border: solid rgb(190 198 209);
  border-width: 1px 1px 1px 1px;
}
