@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Adding this globally */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #f7f8fb;
  font-family: "Inter", "sans-serif";
}

section {
  width: 100%;
  max-width: 100%;

  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.logo__detail {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  /* Adding consistent logo__detail with signup page */
  height: 78px;
}

.logo > img {
  width: auto;
  object-fit: contain;
}
.logo__divider {
  width: 2px;
  height: 48px;
  background-color: #d4d4d4;
}

.login {
  background-color: white;
  padding: clamp(4px, 2rem, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 16px;
}

button {
  background-color: #eeee;
  border: none;
  border-radius: 8px;

  align-items: center;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0.7rem;
  cursor: pointer;
}

.login__separator {
  text-align: center;
  display: flex;
  font-size: 14px;

  align-items: center;
  color: #616161;
  gap: 1.2rem;
}

.login__separator::after,
.login__separator::before {
  content: "";
  height: 2px;
  background-color: #d4d4d4;
  flex: 1;
  width: 20%;
}

.login__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.login__input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.7rem;
}
.login__input {
  padding: 0.8rem;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  font-size: 14px;
  /* Fixing the padding in input fields */
  width: 100%;
}
.login__submit-button {
  background-color: #be263b;
  color: white;
  width: 100%;
}

.login__google-button:hover {
  background-color: #e0e1e2;
}
.login__signup-link {
  text-align: center;
  justify-content: center;
}
.login__signup-link a {
  color: #be263b;
}

.login {
  background-color: white;
  padding: clamp(4px, 2rem, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 16px;
  width: clamp(200px, 90%, 450px);
  box-shadow: 5px 10px 20px rgba(150, 150, 220, 0.362);
}

a {
  color: black;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.login__input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  font-size: 14px;
}

.eye-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.error-message {
  color: #be263b;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.login__input.invalid {
  border: 2px solid #be263b;
}

/* .login__input.valid {
  border: 2px solid green;
} */

.login__title {
  margin: 0;
  font-weight: 600;
}
