/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 2rem;
  --normal-font-size: 1rem;
  --small-font-size: .813rem;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}


body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}
body {
  background: transparent; /* ✅ Allows modal background to show through */
}


a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== LOGIN ===============*/
.login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

.login__form {
  position: relative;
  width: 90%;
  /* max-width: 400px; */
  margin: 20px;
  border: none;
  padding: 1rem;
  color: var(--white-color);
}

.login__title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #fff;
}

.login__inputs, 
.login__box {
  display: grid;
}

.login__inputs {
  row-gap: 1.25rem;
  margin-bottom: 1rem;
}

.login__box {
  grid-template-columns: 1fr max-content;
  column-gap: .75rem;
  align-items: center;
  border: 2px solid hsla(0, 0%, 100%, .7);
  padding-inline: 1.25rem;
  border-radius: 4rem;
}

.login__input, 
.login__button {
  border: none;
  outline: none;
}

.login__input {
  width: 100%;
  background: transparent;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  padding: 14px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  /* margin-bottom: 0.75rem; */
}

.login__input::placeholder {
  color: var(--white-color);
}

.login__box i {
  font-size: 1.25rem;
}

.login__check, 
.login__check-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login__check {
  margin: 1rem 0;
  font-size: var(--small-font-size);
}

.login__check-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login__check-input {
  width: 16px;
  height: 16px;
  accent-color: #0093D1;
}

.login__forgot {
  color: #0093D1;
  font-size: 0.9rem;
  text-decoration: none;
}

.login__forgot:hover {
  text-decoration: underline;
}

.login__button {
  width: 100%;
  padding: 8px;
  margin: 0.75rem 0;
  background-color: #0093D1;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login__button:hover {
  background-color: #007bb2;
}

.login__register {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.login__register a {
  color: #00b3ff;
  font-weight: 500;
  text-decoration: underline #00b3ff;
}

.login__register a:hover {
  text-decoration: underline;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
  .login {
    justify-content: center;
  }
  .login__form {
    padding-inline: 2.5rem;
  }
  .login__title {
    margin-bottom: 2rem;
  }
}

.hidden {
  display: none;
}

.tab-switch {
  display: none;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.tab-switch button {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}

.tab-switch button.active {
  border-color: #0093D1;
  color: #0093D1;
}

.form-container {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 2rem 1rem;
  background: transparent;
  backdrop-filter: blur(16px);
  border-radius: 1rem;
}

.login__google-btn {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.login__google-btn img {
  height: 20px;
  width: auto;
}

.login__google-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Close button styling */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

@media screen and (max-width: 480px) {
  .login__form {
    width: 95%;
    padding: 1.5rem 1rem;
    margin: 10px;
  }

  .login__title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .tab-switch {
    gap: 1.5rem;
  }

  .tab-switch button {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .login__input {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .login__button,
  .login__google-btn {
    padding: 10px;
    font-size: 0.95rem;
  }

  .login__check {
    font-size: 0.85rem;
  }

  .login__register {
    font-size: 0.85rem;
  }
}

