/* Auth pages — sign-in, sign-up, forgot/reset password */

html:has(.auth-page),
body:has(.auth-page) {
  height: auto;
  overflow: auto;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a5c30;
  background-image: url("/assets/boards/board-1-1d85e151.jpg");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Card */

.auth-card {
  width: 100%;
  max-width: 360px;
  background: rgba(10, 26, 15, 0.96);
  border: 1px solid rgba(126, 207, 154, 0.22);
  border-radius: 14px;
  padding: 2rem 2rem 1.8rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.auth-logo {
  margin: 0 0 0.15rem;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Alerts */

.auth-alert {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.auth-alert--error {
  background: rgba(231, 76, 60, 0.14);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #ff8a80;
}

.auth-alert--success {
  background: rgba(126, 207, 154, 0.12);
  border: 1px solid rgba(126, 207, 154, 0.35);
  color: #c8f7e8;
}

/* Form */

.auth-form-group {
  margin-bottom: 1rem;
}

.auth-form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(126, 207, 154, 0.18);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.auth-input:focus {
  border-color: rgba(126, 207, 154, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.auth-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Button */

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.4rem;
  background: #236b3e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn:hover:not(:disabled) {
  background: #2d8a50;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(35, 107, 62, 0.45);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.auth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Footer links */

.auth-footer {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.auth-footer-line {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.auth-footer-line a {
  color: #7ecf9a;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer-line a:hover {
  color: #a8e6c0;
  text-decoration: underline;
}

/* Confirmation message (forgot password success) */

.auth-confirm-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
  text-align: center;
}

.auth-confirm-text strong {
  color: #c8f7e8;
}
