/* Web auth pages (login, register) — Seed Out theme */
body.so-auth-page {
  background: #f8f8f8;
}

body.so-auth-page .footer-wrapper {
  margin-top: 0;
}

.so-auth {
  --so-auth-green: #368420;
  --so-auth-green-dark: #2d6f1a;
  --so-auth-green-soft: rgba(54, 132, 32, 0.12);
  --so-auth-text: #1a1a1a;
  --so-auth-muted: #6c757d;
  --so-auth-border: rgba(0, 0, 0, 0.12);
  --so-auth-radius: 12px;
  --so-auth-card-radius: 20px;
  font-family: 'Outfit', sans-serif;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem);
  background: linear-gradient(165deg, #f8f8f8 0%, #eef5eb 42%, #f8f8f8 100%);
  -webkit-font-smoothing: antialiased;
}

.so-auth *,
.so-auth *::before,
.so-auth *::after {
  box-sizing: border-box;
}

.so-auth__card {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: var(--so-auth-card-radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--so-auth-border);
}

.so-auth__card--wide {
  max-width: 640px;
}

.so-auth__logo {
  display: block;
  width: fit-content;
  max-width: 160px;
  margin: 0 auto 1.35rem;
}

.so-auth__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.so-auth__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: #000;
  text-align: center;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.so-auth__subtitle {
  font-size: 0.9375rem;
  color: var(--so-auth-muted);
  text-align: center;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.so-auth__social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.so-auth__social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--so-auth-border);
  border-radius: var(--so-auth-radius);
  background: #fff;
  color: var(--so-auth-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.so-auth__social-btn:hover {
  transform: translateY(-1px);
}

.so-auth__social-btn--facebook {
  color: #3b5998;
}

.so-auth__social-btn--facebook:hover {
  background: #3b5998;
  border-color: #3b5998;
  color: #fff !important;
}

.so-auth__social-btn--google {
  color: #c5221f;
}

.so-auth__social-btn--google:hover {
  background: #c5221f;
  border-color: #c5221f;
  color: #fff !important;
}

.so-auth__divider {
  text-align: center;
  margin: 1.35rem 0;
  position: relative;
}

.so-auth__divider::before,
.so-auth__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--so-auth-border);
}

.so-auth__divider::before {
  left: 0;
}

.so-auth__divider::after {
  right: 0;
}

.so-auth__divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 0.75rem;
  background: #fff;
  color: var(--so-auth-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.so-auth__row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.so-auth__row .so-auth__field {
  flex: 1;
  min-width: 0;
}

.so-auth__field {
  margin-bottom: 1.1rem;
}

.so-auth__field .form-control {
  width: 100%;
  min-height: 51px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--so-auth-border);
  border-radius: var(--so-auth-radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--so-auth-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.so-auth__field .form-control::placeholder {
  color: #9ca3af;
}

.so-auth__field .form-control:focus {
  outline: none;
  border-color: var(--so-auth-green);
  box-shadow: 0 0 0 3px var(--so-auth-green-soft);
}

.so-auth__field .form-control.has-error,
.so-auth__field.has-error .form-control {
  border-color: #dc3545;
}

.so-auth__field .help-block {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #dc3545;
  line-height: 1.4;
}

.so-auth #root[v-cloak] {
  opacity: 0;
}

.so-auth #root:not([v-cloak]) {
  opacity: 1;
  transition: opacity 0.12s ease;
}

.so-auth #root .help-block[style*="display: block"],
.so-auth #root .help-block[style*="display:block"] {
  display: block !important;
}

.so-auth__check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.so-auth__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--so-auth-green);
  cursor: pointer;
}

.so-auth__check label {
  font-size: 0.9375rem;
  color: var(--so-auth-text);
  line-height: 1.45;
  cursor: pointer;
  margin: 0;
}

.so-auth__captcha {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem 0;
}

.so-auth__captcha .help-block {
  text-align: center;
}

.so-auth__submit {
  width: 100%;
  min-height: 52px;
  padding: 0 1.5rem;
  border: none;
  border-radius: var(--so-auth-radius);
  background: var(--so-auth-green);
  color: #fff !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(54, 132, 32, 0.35);
  text-transform: none;
  letter-spacing: normal;
}

.so-auth__submit:hover:not(:disabled) {
  background: var(--so-auth-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(54, 132, 32, 0.4);
}

.so-auth__submit:disabled {
  background: #b5b5b5;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.so-auth__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--so-auth-border);
  text-align: center;
}

.so-auth__footer p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--so-auth-muted);
}

.so-auth__link-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 1.5rem;
  line-height: 52px;
  border: 2px solid var(--so-auth-green);
  border-radius: var(--so-auth-radius);
  background: transparent;
  color: var(--so-auth-green) !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.so-auth__link-btn:hover {
  background: var(--so-auth-green);
  color: #fff !important;
}

.so-auth__forgot {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--so-auth-green) !important;
  text-decoration: none !important;
}

.so-auth__forgot:hover {
  text-decoration: underline !important;
}

.so-auth .alert {
  padding: 0.75rem 1rem;
  border-radius: var(--so-auth-radius);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.so-auth .alert-info {
  background: #e8f4e6;
  color: #2d6f1a;
  border: 1px solid rgba(54, 132, 32, 0.25);
}

.so-auth .alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.so-auth .alert-danger {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Vue alertbox component inside auth card */
.so-auth .alert.text-white {
  color: inherit !important;
  border-radius: var(--so-auth-radius);
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem !important;
}

.so-auth .alert.alert-info,
.so-auth .alert-info {
  background: #e8f4e6;
  color: #2d6f1a;
  border: 1px solid rgba(54, 132, 32, 0.25);
}

.so-auth .alert.alert-success,
.so-auth .alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.so-auth .alert.alert-danger,
.so-auth .alert-danger {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

@media (max-width: 767px) {
  .so-auth__row {
    flex-direction: column;
    gap: 0;
  }

  .so-auth__social {
    flex-direction: column;
  }

  .so-auth {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .so-auth__submit,
  .so-auth__social-btn,
  .so-auth__link-btn {
    transition: none;
  }
}

/* Sign Up modal — matches auth page theme */
.so-auth.so-auth--modal {
  min-height: 0;
  padding: 0;
  background: transparent;
  display: block;
}

#signUpModal .modal-content {
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#signUpModal .modal-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  font-family: 'Outfit', sans-serif;
  max-height: min(90vh, 920px);
  overflow-y: auto;
}

#signUpModal .modal-title {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 700;
  color: #000;
  margin: 0 0 0.35rem;
  text-align: center;
}

#signUpModal .modal-sub-title {
  font-size: 0.9375rem;
  color: #6c757d;
  margin: 0 0 1.35rem;
  text-align: center;
}

#signUpModal .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

#signUpModal .so-auth__social,
#signUpModal .so-auth__divider,
#signUpModal .so-auth__row,
#signUpModal .so-auth__field,
#signUpModal .so-auth__check,
#signUpModal .so-auth-modal__captcha,
#signUpModal .so-auth__footer {
  max-width: 100%;
}

#signUpModal .form-control {
  min-height: 51px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 1rem;
}

#signUpModal .form-control:focus {
  border-color: #368420;
  box-shadow: 0 0 0 3px rgba(54, 132, 32, 0.1);
}

#signUpModal .form-control.has-error {
  border-color: #dc3545;
}

#signUpModal .help-block {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #dc3545;
}

#signUpModal .help-block.is-visible {
  display: block;
}

#signUpModal .so-auth-modal__captcha {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  min-height: 78px;
}

#signUpModal #signUpModalCaptchaHost {
  min-height: 78px;
}

#signUpModal .modal-form-btn,
#signUpModal .so-auth__submit {
  width: 100%;
  min-height: 52px;
  height: auto;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.2;
  border-radius: 12px;
  background: #368420;
  color: #fff !important;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 16px rgba(54, 132, 32, 0.35);
}

#signUpModal .modal-form-btn:hover,
#signUpModal .so-auth__submit:hover:not(:disabled) {
  background: #2d6f1a;
}

#signUpModal .modal-form-btn:disabled,
#signUpModal .so-auth__submit:disabled {
  background: #b5b5b5;
  box-shadow: none;
}

#signUpModal .so-auth__link-btn {
  margin-top: 0;
  line-height: 1.2;
  padding: 0.85rem 1.5rem;
  height: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#signUpModal .so-auth__footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

#signUpModal .so-auth__footer p {
  margin: 0 0 0.75rem;
  color: #6c757d;
  font-size: 0.9375rem;
}

#signUpModal .alert-danger.modal-form-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
}

@media (max-width: 767px) {
  #signUpModal .modal-body {
    padding: 1.25rem 1rem 1.5rem;
  }

  #signUpModal .so-auth__row {
    flex-direction: column;
    gap: 0;
  }
}
