/* ===============================
   RESET AND BASE STYLES
=================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===============================
   BODY AND BACKGROUND
=================================*/
body {
  min-height: 100vh;
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  background: linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url('reception.jpeg') center / cover no-repeat;
  background-attachment: fixed;
  padding: 20px;
  transition: all 0.3s ease;
}

/* ===============================
   LOGIN CONTAINER
=================================*/
.login-container {
  width: 350px;
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  position: relative;
  margin: auto;
  transition: transform 0.3s ease;
}

.login-container::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  filter: blur(15px);
  z-index: -1;
}

/* ===============================
   HEADER
=================================*/
.login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.login-header img {
  width: 200px;
  height: auto;
}

.login-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
}

/* ===============================
   FORM ELEMENTS
=================================*/
.input-box {
  position: relative;
  margin-bottom: 20px;
}

.input-box input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  background: #fff;
  border: none;
  border-radius: 30px;
  color: #75767B;
  outline: none;
}

.input-box input::placeholder {
  color: #75767B;
}

.input-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
}

/* ===============================
   OPTIONS (checkbox, forgot link)
=================================*/
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.options input {
  margin-right: 5px;
}

/* ===============================
   BUTTONS
=================================*/
.login-btn {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #82CAFF;
  transform: scale(1.0);
}

/* ===============================
   REGISTER LINK
=================================*/
.register-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #191970;
  text-decoration: underline;
}

/* ===============================
   RESPONSIVE DESIGN
=================================*/

/* For tablets (≤1024px) */
@media (max-width: 1024px) {
  .login-container {
    width: 70%;
    max-width: 400px;
    padding: 25px 35px;
  }

  .login-header img {
    width: 80px;
  }

  .login-header h2 {
    font-size: 22px;
  }
}

/* For phones (≤768px) */
@media (max-width: 768px) {
  html, body {
    height: 100%; /* ensure full viewport height */
  }

  body {
    justify-content: center;
    align-items: center; /* centered by default */
    padding: 0 10px;
    background-attachment: scroll;
  }

  .login-container {
    width: 90%;
    max-width: 400px;
    padding: 20px 25px;
    margin: auto;
  }

  /* Move form up slightly when input focused (keyboard opens) */
  input:focus, textarea:focus {
    transform: translateY(-50px);
  }

  .login-header {
    flex-direction: column;
    text-align: center;
  }

  .login-header img {
    width: 70px;
    margin-bottom: 10px;
  }

  .login-header h2 {
    font-size: 20px;
  }

  .input-box input {
    padding: 10px 35px 10px 15px;
    font-size: 15px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .login-btn {
    padding: 10px;
    font-size: 15px;
  }
}

/* For small phones (≤480px) */
@media (max-width: 480px) {
  .login-container {
    width: 95%;
    padding: 15px 20px;
  }

  .login-header img {
    width: 60px;
  }

  .login-header h2 {
    font-size: 18px;
  }

  .login-btn {
    padding: 8px;
    font-size: 14px;
  }

  .register-link {
    font-size: 13px;
  }
}
