/* auth modals */
 
/* overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
 
.auth-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
 
/* modal card */
.auth-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
 
.auth-overlay.is-open .auth-modal {
  transform: translateY(0);
}
 
/* close button */
.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f3f5;
  color: #555;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s;
}
 
.auth-modal__close:hover {
  background: #e2e5ea;
}
 
/* modal title */
.auth-modal__title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 28px;
}
 
/* form field */
.auth-modal__field {
  margin-bottom: 18px;
}
 
.auth-modal__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
 
/* input row - wraps input and optional icon */
.auth-modal__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
 
.auth-modal__input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 14px;
  border: 1.5px solid #e0e4ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
 
.auth-modal__input::placeholder {
  color: #adb5bd;
}
 
.auth-modal__input:focus {
  border-color: #357CFC;
}
 
/* eye toggle - show/hide password */
.auth-modal__eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: #adb5bd;
  transition: color 0.15s;
  z-index: 1;
}
 
.auth-modal__eye:hover {
  color: #555;
}
 
/* label row - label and forgot link side by side */
.auth-modal__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
 
.auth-modal__forgot {
  font-size: 13px;
  font-weight: 500;
  color: #357CFC;
  text-decoration: none;
}
 
.auth-modal__forgot:hover {
  text-decoration: underline;
}
 
/* submit button */
.auth-modal__submit {
  width: 100%;
  height: 48px;
  background: #357CFC;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
  transition: background 0.2s;
}
 
.auth-modal__submit:hover {
  background: #2563d6;
}
 
/* switch link to other modal */
.auth-modal__switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #888;
}
 
.auth-modal__switch a {
  color: #357CFC;
  font-weight: 600;
  text-decoration: none;
}
 
.auth-modal__switch a:hover {
  text-decoration: underline;
}
 
/* focus outline for keyboard nav */
.auth-modal__input:focus-visible,
.auth-modal__submit:focus-visible,
.auth-modal__close:focus-visible {
  outline: 3px solid #357CFC;
  outline-offset: 2px;
}
 
/* Drupal form integration — map Drupal classes to modal styles */
 
/* form-item acts as .auth-modal__field */
.auth-modal .form-item {
  margin-bottom: 18px;
  position: relative;
}
 
/* Drupal labels act as .auth-modal__label */
.auth-modal .form-item > label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
 
/* Drupal text inputs — class is .form-text not .form-element */
.auth-modal .form-text {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 14px;
  border: 1.5px solid #e0e4ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  box-sizing: border-box;
}
 
.auth-modal .form-text::placeholder {
  color: #adb5bd;
}
 
.auth-modal .form-text:focus {
  border-color: #357CFC;
}
 
/* Drupal submit button — .button.form-submit */
.auth-modal .form-submit {
  width: 100%;
  height: 48px;
  background: #357CFC;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
 
.auth-modal .form-submit:hover {
  background: #2563d6;
}
 
/* Hide Drupal form-actions wrapper margin */
.auth-modal .form-actions {
  margin: 0;
}
 
/* mobile (max 480px) */
@media (max-width: 480px) {
  .auth-modal {
    padding: 32px 22px 28px;
  }
 
  .auth-modal__title {
    font-size: 20px;
  }
}
 