/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #ffffff, #e6f0ff);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ===== Card Container ===== */
.card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 70px 25px 35px; /* top padding leaves space for floating logo */
  text-align: center;
  transition: transform 0.25s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
}

/* ===== Floating Logo ===== */
.logo {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

/* ===== Headings ===== */
h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
}

/* ===== Labels & Inputs ===== */
label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #333;
  text-align: left;
}

input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: border 0.2s;
}

input:focus {
  outline: none;
  border-color: #007bff;
}

/* OTP-specific input (applies automatically on OTP page) */
#otp {
  letter-spacing: 6px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
}

/* ===== Buttons ===== */
button {
  width: 100%;
  background: #007bff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

button:hover {
  background: #0056b3;
}

/* ===== Small helper links (bottom) ===== */
p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #444;
}

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

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

/* ===== reCAPTCHA container ===== */
#recaptcha-container {
  margin-top: 10px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .card {
    padding: 65px 20px 30px;
  }

  .logo img {
    width: 70px;
    height: 70px;
  }

  h2 {
    font-size: 1.3rem;
  }

  input {
    font-size: 1rem;
    padding: 10px 12px;
  }

  button {
    font-size: 0.95rem;
    padding: 10px;
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 60px;
    height: 60px;
  }

  .card {
    padding: 55px 15px 25px;
  }

  h2 {
    font-size: 1.2rem;
  }

  input {
    font-size: 0.95rem;
  }

  #otp {
    font-size: 1.2rem;
    letter-spacing: 5px;
  }

  button {
    font-size: 0.9rem;
  }
}
