@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap");

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Background Styling */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 10px;
  background: linear-gradient(135deg, #d9a7c7 0%, #fffcdc 100%);
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("/assets/images/loginbgi.jpg") center/cover no-repeat;
  z-index: -1;
}

/* Wrapper (Glassmorphism) */
.wrapper {
  width: 350px;
  padding: 30px 25px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  max-height: 90vh;
  overflow-y: auto;
  transition: box-shadow 0.3s ease;
  text-align: center;
}

.wrapper:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* Typography */
h2 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 15px;
}

/* General Input Field */
.input-field {
  position: relative;
  margin: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.input-field input {
  width: 100%;
  height: 35px;
  padding: 0 8px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  top: 10px;
  font-size: 0.75rem;
  transform: translateY(-150%);
  color: #ffe2ec;
}

/* OTP Email Group Fix */
.otp-email-group {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 10px 0;
}

.otp-email-group .email-wrapper {
  position: relative;
  padding-bottom: 5px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Divider moved here */
}

.otp-email-group input {
  width: 100%;
  height: 35px;
  padding: 0 8px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
}

.otp-email-group label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease;
}

.otp-email-group input:focus ~ label,
.otp-email-group input:valid ~ label {
  font-size: 0.75rem;
  top: 10px;
  transform: translateY(-150%);
  color: #ffe2ec;
}

.otp-email-group .send-otp-btn {
  display: block;
  margin: 0 auto;
  margin-top: 8px;
}

/* OTP Field (Code Input) */
.otp-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.otp-field input {
  flex: 1;
  height: 35px;
  padding: 0 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 14px;
}

/* OTP Field Placeholder Text */
.otp-field input::placeholder {
  color: #ffffff; /* White */
  font-size: 14px; /* You can adjust font size too */
}

/* Hidden Class */
.hidden {
  display: none;
}

/* Password Toggle Eye */
.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffb3ff;
  transition: transform 0.2s ease;
}

.toggle-password:hover {
  transform: translateY(-50%) scale(1.2);
}

/* Buttons */
button,
.send-otp-btn,
.verify-otp-btn {
  margin-top: 12px;
  background-color: #271930;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  width: fit-content;
}

button:hover,
.send-otp-btn:hover,
.verify-otp-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #000000;
  border-color: #ffffff;
}

/* Back Arrow Navigation */
.back-arrow {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  color: #ffb3ff;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 10;
  transition: color 0.2s ease;
}

.back-arrow:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer Redirect */
.register {
  margin-top: 18px;
  font-size: 14px;
  color: #ffffff;
}

.register a {
  color: #ffe2ec;
  text-decoration: none;
}

.register a:hover {
  text-decoration: underline;
}
