/**
 * Shared auth pages — login, B2B/B2C register (aligns with storefront-header accent).
 */
:root {
  --jdh-auth-accent: #ea580c;
  --jdh-auth-accent-dark: #c2410c;
  --jdh-auth-surface: #ffffff;
  --jdh-auth-border: #e5e7eb;
  --jdh-auth-muted: #6b7280;
}

.jdh-auth-page {
  padding: clamp(24px, 5vw, 48px) 0 clamp(40px, 8vw, 72px);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  min-height: 48vh;
}

.jdh-auth-page .custom-container {
  max-width: 1120px;
}

.jdh-auth-card {
  background: var(--jdh-auth-surface);
  border: 1px solid var(--jdh-auth-border);
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 12px 40px -12px rgba(15, 23, 42, 0.12);
  padding: clamp(20px, 4vw, 36px);
}

.jdh-auth-card--narrow {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.jdh-auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 0.35rem;
}

.jdh-auth-card__subtitle {
  color: var(--jdh-auth-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.jdh-auth-alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.jdh-auth-alert--danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.jdh-auth-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.jdh-auth-switch {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--jdh-auth-border);
}

.jdh-auth-switch a {
  color: var(--jdh-auth-accent);
  font-weight: 600;
}

.jdh-auth-switch a:hover {
  color: var(--jdh-auth-accent-dark);
}

.jdh-auth-section {
  margin-bottom: 1.75rem;
}

.jdh-auth-section:last-of-type {
  margin-bottom: 0;
}

.jdh-auth-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--jdh-auth-accent);
  display: inline-block;
}

.jdh-auth-file {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.jdh-auth-file:focus-within {
  border-color: var(--jdh-auth-accent);
  background: #fffbeb;
}

.jdh-auth-file label {
  font-weight: 600;
  color: #111827;
}

.jdh-auth-file .form-control {
  margin-top: 8px;
  border-radius: 8px;
}

.jdh-auth-file__hint {
  font-size: 0.8rem;
  color: var(--jdh-auth-muted);
  margin-top: 6px;
}

.jdh-auth-file__name {
  font-size: 0.85rem;
  color: #059669;
  margin-top: 6px;
  min-height: 1.25em;
}

.jdh-auth-file.is-invalid {
  border-color: #f87171;
  background: #fef2f2;
}

.jdh-auth-btn-primary {
  background: linear-gradient(180deg, #f97316 0%, var(--jdh-auth-accent) 45%, var(--jdh-auth-accent-dark) 100%);
  border: none;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.jdh-auth-btn-primary:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.jdh-auth-breadcrumb .breadcrumb-contain h2 {
  font-size: 1.35rem;
}

.jdh-auth-breadcrumb .breadcrumb-contain a {
  color: var(--jdh-auth-accent);
}

.jdh-auth-form .form-label,
.jdh-auth-form label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.jdh-auth-form .text-danger {
  font-size: 0.8rem;
}

/* Inputs — shared look with register (white fields, subtle border, squared corners) */
.jdh-auth-form .form-control,
.jdh-auth-form select.form-control {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  min-height: 46px;
  font-size: 0.95rem;
  color: #111827;
  padding: 10px 14px;
}

.jdh-auth-form textarea.form-control {
  min-height: 88px;
  height: auto;
}

.jdh-auth-form .form-control::placeholder {
  color: #9ca3af;
}

.jdh-auth-form .form-control:focus {
  border-color: var(--jdh-auth-accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/**
 * Login — inner panel (light gray) behind fields + primary action, like storefront mock.
 */
.jdh-auth-form-panel {
  background: #f0f2f5;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: clamp(18px, 3.5vw, 26px);
  margin-top: 0.25rem;
}

.jdh-auth-form-panel .jdh-auth-login-actions {
  margin-top: 0.25rem;
}

.jdh-auth-form-panel .form-check {
  padding-left: 1.65rem;
}

.jdh-auth-form-panel .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.2em;
  border-color: #9ca3af;
}

.jdh-auth-form-panel .form-check-input:checked {
  background-color: var(--jdh-auth-accent);
  border-color: var(--jdh-auth-accent-dark);
}

.jdh-auth-form-panel .form-check-label {
  font-weight: 500;
  color: #4b5563;
  font-size: 0.9rem;
}

.jdh-auth-login-forgot {
  color: var(--jdh-auth-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.jdh-auth-login-forgot:hover {
  color: var(--jdh-auth-accent);
}

.jdh-pwd-hint {
  font-size: 0.8rem;
  color: var(--jdh-auth-muted);
}

/* Contact page — map card */
.jdh-contact-card .jdh-auth-section__title {
  margin-bottom: 0.75rem;
}

.jdh-contact-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--jdh-auth-border);
  background: #e5e7eb;
  line-height: 0;
}

.jdh-contact-map iframe {
  width: 100%;
  max-width: 100%;
  height: min(420px, 55vh);
  min-height: 280px;
  display: block;
}
