* {
  box-sizing: border-box;
}

/* Body Layout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Blurred Background */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px);
  transform: scale(1.1);
  z-index: -1;
}

/* Main Container */
.auth-container {
  background: #ffffff;
  width: 450px;
  padding: 40px;
  border-radius: 26px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Logo */
.logo {
  width: 100px;
  margin-bottom: 15px;
}

/* Title */
.auth-container h1 {
  margin: 0;
  font-size: 36px;
  color: #52b028;
}

.tagline {
  font-size: 14px;
  color: #52b028;
  margin: 10px 0 25px 0;
}

.form-group {
  margin-bottom: 15px;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: 0.3s ease;
}

input:focus {
  border-color: #52b028;
  box-shadow: 0 0 5px rgba(82, 176, 40, 0.4);
}

/* OTP code entry */
.otp-intro {
  font-size: 14px;
  color: #333;
  text-align: left;
  margin: 10px 0 20px 0;
}

.otp-intro strong {
  color: #111;
}

.otp-boxes {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.otp-box {
  width: 50px;
  height: 60px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #111;
  border-radius: 12px;
  border: 1.5px solid #ddd;
}

.otp-box.filled {
  border-color: #111;
}

.otp-help {
  font-size: 13px;
  color: #888;
  text-align: left;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.otp-resend {
  text-align: left;
  margin-bottom: 20px;
}

.otp-resend a {
  font-size: 14px;
  color: #333;
  text-decoration: underline;
}

.otp-resend a:hover {
  color: #52b028;
}

/* Password field with show/hide toggle */
.password-group {
  position: relative;
}

.password-group input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #52b028;
}

.password-toggle i {
  font-size: 18px;
}

/* Button */
.auth-btn {
  width: 100%;
  padding: 12px;
  background-color: #52b028;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.auth-btn:hover {
  background-color: #64ca35;
}

/* Options (remember + forgot) */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  width: 100%;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.remember input {
  width: auto;
  margin: 0;
}

.forgot {
  text-decoration: underline;
  color: #007bff;
}

/* Login Link */
.login-link {
  margin-top: 15px;
  font-size: 14px;
}

.login-link a {
  color: #598ff3;
  text-decoration: none;
  font-weight: bold;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-container {
    width: 90%;
    padding: 25px;
  }
}
