@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@1,100&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to right, #f7e6f6, #d186d4); /* softer pink-purple gradient */
  color: #4a3d55; /* deep muted purple */
}

.container {
  margin: 15px;
}

.form-box {
  width: 100%;
  max-width: 450px;
  padding: 30px;
  background: #fef7fc; /* off-white with pink tint */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(209, 109, 218, 0.3); /* soft purple shadow */
  display: none;
}

.form-box.active {
  display: block;
}

h2 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: #a855f7; /* vibrant purple */
}

input,
select {
  width: 100%;
  padding: 12px;
  background: #f6e8f8; /* very pale purple */
  border-radius: 8px;
  border: 1.5px solid #d186d4; /* soft purple border */
  outline: none;
  font-size: 16px;
  color: #6b4a89; /* medium purple */
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  border-color: #a855f7; /* highlight purple on focus */
  background: #fbeaff;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #d67a8d, #bf4f84);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(214, 122, 141, 0.7);
  transition: background 0.5s ease;
}

button:hover {
  background: linear-gradient(90deg, #bf4f84, #d67a8d);
}

p {
  font-size: 14.5px;
  text-align: center;
  margin-bottom: 10px;
  color: #71577f; /* muted purple */
}

p a {
  color: #d67a8d;
  text-decoration: none;
  font-weight: 600;
}

p a:hover {
  text-decoration: underline;
}

/* Error message */
.error-message {
  padding: 12px;
  background: #fde7f8;
  border-radius: 8px;
  font-size: 16px;
  color: #bf4f84;
  text-align: center;
  margin-bottom: 20px;
}

/* Password toggle - eye icon positioning */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  width: 100%;
  padding-right: 40px;
  font-size: 16px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  color: #a768a3;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #d67a8d;
}

/* Return button fixed top-left */
.btn-return {
  position: fixed;
  top: 1rem;
  left: 1rem;
  max-width: fit-content;
  background: none;
  border: 1.5px solid #d67a8d;
  color: #d67a8d;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  z-index: 1050; /* above other elements */
  border-radius: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-return:hover {
  color: #fff;
  border-color: #bf4f84;
  text-decoration: underline;
}
