/* Auth UI overrides — scoped to .auth-page to avoid site-wide bleed */
.auth-page {
  --auth-orange: #FF6B00;
  --auth-orange-hover: #e65f00;
  --auth-orange-soft: rgba(255, 107, 0, 0.12);
  --auth-text: #1f2d3d;
  --auth-muted: #6c757d;
  --auth-border: #e6ebf1;
  --auth-danger: #dc3545;
  font-size: 17px;
  line-height: 1.5;
  color: var(--auth-text);
}

.auth-page.ftco-section {
  padding: 2rem 1rem 2.5rem;
}

.auth-page .auth-card {
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.auth-page .wrap {
  border-radius: 8px;
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.18);
}

.auth-page .wrap .img {
  height: 160px;
}

.auth-page .login-wrap {
  padding: 1.5rem 1.5rem 1.75rem !important;
}

@media (min-width: 768px) {
  .auth-page .login-wrap {
    padding: 1.75rem 2rem 2rem !important;
  }
}

/* Tabs: Sign In | Sign Up */
.auth-page .auth-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--auth-border);
}

.auth-page .auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--auth-muted);
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-page .auth-tabs a:hover {
  color: var(--auth-text);
}

.auth-page .auth-tabs a.active {
  color: var(--auth-orange);
  border-bottom-color: var(--auth-orange);
  font-weight: 700;
}

/* Static labels + tight field spacing */
.auth-page .auth-field {
  position: relative;
  margin-bottom: 1rem !important;
  z-index: 0;
}

.auth-page .auth-field.mb-0 {
  margin-bottom: 0 !important;
}

.auth-page .auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--auth-text);
  text-transform: none;
}

.auth-page .auth-field .form-control {
  height: 52px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  font-size: 1.05rem;
  color: var(--auth-text);
  background: #fff;
  box-shadow: none;
}

.auth-page .auth-field textarea.form-control {
  height: auto;
  min-height: 96px;
  padding-top: 0.65rem;
  resize: vertical;
}

.auth-page .auth-field select.form-control {
  padding-right: 2rem;
}

.auth-page .auth-field .form-control:focus,
.auth-page .auth-field .form-control:active {
  outline: none !important;
  box-shadow: 0 0 0 3px var(--auth-orange-soft) !important;
  border-color: var(--auth-orange) !important;
}

.auth-page .auth-field .form-control.is-invalid {
  border-color: var(--auth-danger);
}

.auth-page .auth-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--auth-danger);
}

/* Password eye — sit inside the input wrap */
.auth-page .auth-input-wrap {
  position: relative;
}

.auth-page .auth-input-wrap .form-control {
  padding-right: 2.75rem;
}

.auth-page .auth-input-wrap .field-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--auth-muted);
  z-index: 2;
}

.auth-page .auth-input-wrap .field-icon:hover {
  color: var(--auth-text);
}

/* Kill broken floating-label styles inside auth cards */
.auth-page .form-control-placeholder {
  display: none !important;
}

/* Actions row */
.auth-page .auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.auth-page .checkbox-wrap {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--auth-text);
}

.auth-page .checkbox-primary {
  color: var(--auth-text);
}

.auth-page .checkbox-primary input:checked ~ .checkmark:after {
  color: var(--auth-orange);
}

.auth-page .auth-forgot {
  font-size: 1rem;
  font-weight: 600;
  color: var(--auth-orange) !important;
  text-decoration: none !important;
}

.auth-page .auth-forgot:hover {
  color: var(--auth-orange-hover) !important;
  text-decoration: underline !important;
}

/* Primary button */
.auth-page .btn.btn-primary,
.auth-page .btn.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--auth-orange) !important;
  border: 1px solid var(--auth-orange) !important;
  color: #fff !important;
  height: 52px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
}

.auth-page .btn.btn-primary:hover {
  background: var(--auth-orange-hover) !important;
  border-color: var(--auth-orange-hover) !important;
  color: #fff !important;
}

.auth-page .btn.btn-primary:focus {
  box-shadow: 0 0 0 3px var(--auth-orange-soft) !important;
}

.auth-page .auth-submit {
  margin-bottom: 0.75rem;
}

.auth-page .auth-helper {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 1rem;
  color: var(--auth-muted);
}

.auth-page .auth-helper a {
  color: var(--auth-orange) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.auth-page .auth-helper a:hover {
  text-decoration: underline !important;
}

/* Register card can be slightly wider for many fields */
.auth-page .auth-card--wide {
  max-width: 560px;
}

@media (max-width: 575px) {
  .auth-page.ftco-section {
    padding: 1.25rem 0.75rem 2rem;
  }

  .auth-page .login-wrap {
    padding: 1.25rem 1.1rem 1.5rem !important;
  }

  .auth-page .auth-tabs a {
    font-size: 1.05rem;
    padding: 0.7rem 0.35rem;
  }

  .auth-page .auth-label,
  .auth-page .checkbox-wrap,
  .auth-page .auth-forgot,
  .auth-page .auth-helper {
    font-size: 1rem;
  }

  .auth-page .auth-field .form-control {
    font-size: 1.05rem;
  }

  .auth-page .btn.btn-primary {
    font-size: 1.05rem;
  }
}
