/* Page background */
.signup-page {
  background: #f4f8ff;
  padding: 60px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Form card */
.signup-card {
  background: #ffffff;
  max-width: 520px;
  width: 100%;
  padding: 40px 35px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.signup-card h1 {
  font-size: 1.9rem;
  margin-bottom: 6px;
  text-align: center;
}

.signup-card .subtext {
  text-align: center;
  color: #5f6b81;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 12px;
  color: #0b1c3c;
}

/* Form layout */
.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  flex: 1;
}

label {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #1a1a1a;
}

input {
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccdaf8;
  background: #f9fbff;
  transition: border 0.2s;
}

input:focus {
  border-color: #2a6cf4;
  outline: none;
  background: #fff;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: #2a6cf4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1f4fb3;
}

/* Divider */
.or-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
}

.or-divider span {
  margin: 0 auto;
  padding: 0 10px;
  font-size: 0.9rem;
  color: #6d7a92;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d0d7e9;
}

/* Google button */
.btn-google {
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #d0d7e9;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-google:hover {
  background: #f4f8ff;
}

/* Mobile */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}
.password-group {
  position: relative;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* space for the eye icon */
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toggle-password:hover {
  opacity: 1;
}
/* Password wrapper */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toggle-password:hover {
  opacity: 1;
}

/* Password requirement messages */
.pw-requirements p {
  font-size: 0.85rem;
  margin: 3px 0;
  color: #9ba6bd;
}

.pw-requirements p.valid {
  color: #2a6cf4;
  font-weight: 600;
}

/* Match check message */
.pw-match {
  font-size: 0.85rem;
  margin-top: 4px;
  color: #d9534f; /* red by default */
}

.pw-match.valid {
  color: #28a745; /* green when matched */
}
button.btn-primary:disabled,
button.btn-primary[disabled] {
  background: #aac4ff !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
}
button.btn-primary:disabled:hover {
  background: #aac4ff !important;
}
.recaptcha {
    display: flex;
    justify-content: center;
}
.email-message {
    margin-top: 5px;
    font-size: 0.9rem;
}

.email-message.success {
    color: green;
}

.email-message.error {
    color: red;
}
.google-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}
.signup-failed {
  background: #eef4ff;
  border: 1px solid #c7d7ff;
  color: #24438f;
}
.signup-failed {
  background: #ffeaea;
  border: 1px solid #ffb6b6;
  color: #c62828;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.signup-failed::before {
  content: "⚠️";
  font-size: 1.2rem;
}
.signup-card h1 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #1f4fb3, #2a6cf4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}



