/* Shared auth-page styles: login, signup, forgot password, change password */

.login-wrapper,
.signup-wrapper,
.forgot-password-wrapper,
.change-password-wrapper {
  background-color: #efdbc2;
  border: 1px solid #c8a87a;
  border-radius: 4px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
}

.login-wrapper,
.forgot-password-wrapper {
  max-width: 580px;
}

.signup-wrapper,
.change-password-wrapper {
  max-width: 660px;
}

.change-password-wrapper {
  max-width: 640px;
}

.login-title,
.forgot-password-title,
.change-password-title {
  border-bottom: 1px solid #c8a87a;
  color: #4a1a1a;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.login-title {
  margin-bottom: 1.5rem;
}

.signup-title {
  color: #4a1a1a;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.forgot-password-copy,
.change-password-copy {
  color: #4a1a1a;
  margin-bottom: 1rem;
}

.login-table,
.signup-table,
.forgot-password-table,
.change-password-table {
  table-layout: fixed;
  width: 100%;
}

.login-table td,
.signup-table td,
.forgot-password-table td,
.change-password-table td {
  padding: 0.45rem 0.5rem;
  vertical-align: middle;
}

.signup-table td {
  padding: 0.4rem 0.5rem;
}

.login-table label,
.signup-table label,
.forgot-password-table label,
.change-password-table label {
  color: #4a1a1a;
  display: block;
  text-align: right;
}

.signup-table .required-star {
  color: #cc0000;
  margin-right: 0.2rem;
}

.login-table input[type="email"],
.login-table input[type="password"],
.signup-table input[type="text"],
.signup-table input[type="email"],
.signup-table input[type="password"],
.signup-table select,
.forgot-password-table input[type="email"],
.change-password-table input[type="password"] {
  background-color: #fdf5e8;
  border: 1px solid #aaa;
  box-sizing: border-box;
  font-size: 0.95rem;
  max-width: 280px;
  padding: 0.35rem 0.6rem;
  width: 100%;
}

.login-table input[type="email"],
.login-table input[type="password"],
.forgot-password-table input[type="email"],
.change-password-table input[type="password"] {
  max-width: 260px;
}



.login-btn,
.signup-btn,
.forgot-password-btn,
.change-password-btn {
  background-color: #5a3a1a;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-right: 0.3rem;
  padding: 0.35rem 1.1rem;
  text-decoration: none;
}

.signup-btn {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  padding: 0.4rem 1.8rem;
}

.login-btn:hover,
.signup-btn:hover,
.forgot-password-btn:hover,
.change-password-btn:hover {
  background-color: #3a2010;
  color: #fff;
}

.login-link,
.forgot-password-link,
.signup-success-link {
  color: #8b0000;
  text-decoration: underline;
}

.login-link:hover,
.forgot-password-link:hover {
  color: #4a1a1a;
}

#loginError,
#signupError,
#forgotPasswordError,
#changePasswordError {
  color: #cc0000;
  display: none;
  font-weight: bold;
  margin-bottom: 1rem;
}

#forgotPasswordSuccess,
#changePasswordSuccess {
  color: #2d6a2d;
  display: none;
  font-weight: bold;
  margin-bottom: 1rem;
}

#signupEmailStatus {
  display: none;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-top: 0.35rem;
}

#signupEmailStatus.is-success {
  color: #1f6b2f;
}

#signupEmailStatus.is-warning {
  color: #8b0000;
}

#signupEmailStatus.is-muted {
  color: #555;
}

.g-recaptcha {
  margin-top: 0.25rem;
}

.login-wrapper .g-recaptcha {
  margin-top: 0.5rem;
}

.captcha-note {
  color: #8b0000;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

#loginCaptchaNote {
  display: none;
}

.members-section {
  border-top: 1px solid #c8a87a;
  color: #4a1a1a;
  font-weight: bold;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
}

.forgot-password-actions,
.change-password-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#forgotPasswordPreview {
  background-color: #f9f0df;
  border: 1px dashed #9f835d;
  color: #4a1a1a;
  display: none;
  margin-top: 1rem;
  padding: 0.85rem;
}

.forgot-password-preview-body {
  border-top: 1px solid #c8a87a;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.auth-label-cell {
  width: 42%;
}

.auth-cell-top-gap {
  padding-top: 0.8rem !important;
}

.auth-center {
  text-align: center;
}

.login-forgot-row {
  padding-top: 1rem !important;
}

.login-signup-row {
  padding-top: 0.5rem !important;
}

.signup-success-wrapper {
  text-align: center;
}

.signup-success-title {
  color: #4a1a1a;
}

@media (max-width: 767px) {
  .login-wrapper,
  .signup-wrapper,
  .forgot-password-wrapper,
  .change-password-wrapper {
    margin: 1rem;
    padding: 1.25rem 1rem;
  }

  .login-title {
    font-size: 1.35rem;
    text-align: center;
  }

  .signup-title {
    margin-bottom: 1rem;
  }

  .login-table,
  .login-table tbody,
  .login-table tr,
  .login-table td,
  .signup-table,
  .signup-table tbody,
  .signup-table tr,
  .signup-table td,
  .forgot-password-table,
  .forgot-password-table tbody,
  .forgot-password-table tr,
  .forgot-password-table td,
  .change-password-table,
  .change-password-table tbody,
  .change-password-table tr,
  .change-password-table td {
    display: block;
    width: 100%;
  }

  .login-table tr,
  .forgot-password-table tr,
  .change-password-table tr {
    margin-bottom: 0.75rem;
  }

  .signup-table tr {
    margin-bottom: 0.65rem;
  }

  .login-table td,
  .signup-table td,
  .forgot-password-table td,
  .change-password-table td {
    padding: 0.2rem 0;
    text-align: left;
  }

  .login-table label,
  .signup-table label,
  .forgot-password-table label,
  .change-password-table label {
    margin-bottom: 0.25rem;
    text-align: left;
  }

  .login-table input[type="email"],
  .login-table input[type="password"],
  .signup-table input[type="text"],
  .signup-table input[type="email"],
  .signup-table input[type="password"],
  .signup-table select,
  .forgot-password-table input[type="email"],
  .change-password-table input[type="password"] {
    max-width: none;
  }

  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
  }

  .members-section {
    margin-top: 0.75rem;
  }
}

@media (max-width: 420px) {
  .g-recaptcha {
    transform: scale(0.82);
    transform-origin: 0 0;
  }
}
