/* vendor-portal/: the vendor portal's sign-in and "Your directory entry" pages
   (docs/VENDOR_PORTAL.md). Built on ds-content.css's calc-* form vocabulary
   and ds-pg-vendor-signup.css's wk-* form pieces, which both pages load; this
   file adds only what the portal needs on top. Tokens only
   (docs/DESIGN-SYSTEM.md). */

/* The bar over the heading: which portal, who is signed in, sign out. */
.vp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-2) var(--ds-space-4);
}

.vp-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ds-fg-muted);
}

/* A button that reads as a link: sign out, send a new code, go back. */
.vp-link {
  min-height: var(--ds-target);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-accent-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vp-link:hover {
  color: var(--ds-fg);
}

.vp-link:focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: 2px;
}

.vp-link:disabled {
  color: var(--ds-fg-muted);
  cursor: default;
}

.vp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ds-space-2) var(--ds-space-4);
  margin-top: var(--ds-space-3);
}

/* What just happened: a code went out, a save landed, a session ended. */
.vp-note {
  margin: var(--ds-space-5) 0 0;
  padding: var(--ds-space-4) var(--ds-space-5);
  border-left: 2px solid var(--ds-accent);
  border-radius: var(--ds-radius-md);
  background: var(--ds-accent-subtle);
  color: var(--ds-fg);
  font-size: 16px;
  line-height: 1.5;
}

.vp-note:focus {
  outline: none;
}

.vp-note:focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: 2px;
}

.vp-load-error {
  margin-top: var(--ds-space-5);
}

.vp-sent {
  margin: 0 0 var(--ds-space-4);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ds-fg);
}

/* The outer fieldset only exists so a look-only login can disable the
   whole form at once; it draws nothing. */
.vp-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* A field the vendor can see but not change (a firm's shared name). */
.calc-field input:read-only:not([type="file"]) {
  background: var(--ds-surface-alt);
  color: var(--ds-fg-muted);
}

.vp-shared {
  margin: var(--ds-space-3) 0 0;
}

/* The logo and sign-in email cards under the main form. */
.vp-side {
  margin-top: var(--ds-space-6);
}

.vp-h2 {
  margin: 0 0 var(--ds-space-4);
}

.vp-logo {
  margin: 0 0 var(--ds-space-4);
}

.vp-logo-img {
  display: block;
  max-width: 200px;
  max-height: 200px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  object-fit: contain;
}

.vp-foot {
  margin-top: var(--ds-space-6);
  color: var(--ds-fg-muted);
}
