/* ORBITECH365 Dealer Auth V1 browser entry point.
   Presentation only; the existing same-origin server contract owns auth. */

.dealer-auth-v1-status {
  max-width: 180px;
  color: var(--dealer-muted);
  font-size: var(--dealer-fs-body,14.5px);
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
}

.dealer-auth-v1-button {
  cursor: pointer;
  font-size: var(--dealer-fs-body-lg,15px);
}
.dealer-auth-v1-button::before { content: none !important; }
.dealer-auth-v1-button[hidden] { display: none; }
.dealer-auth-v1-button:disabled { cursor: wait; }

.dealer-auth-v1-dialog[hidden] { display: none; }
.dealer-auth-v1-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .58);
}

.dealer-auth-v1-card {
  width: min(420px, 100%);
  border: 1px solid var(--dealer-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
  overflow: hidden;
}

.dealer-auth-v1-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--dealer-line);
}
.dealer-auth-v1-head p {
  margin: 0 0 6px;
  color: #b94b08;
  font-size: var(--dealer-fs-label,13.5px);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dealer-auth-v1-head h2 { margin: 0; font-size: var(--dealer-fs-h2-lg,23px); line-height: 1.25; }
.dealer-auth-v1-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--dealer-line);
  border-radius: 9px;
  background: #fff;
  color: var(--dealer-muted);
  cursor: pointer;
  font-size: var(--dealer-fs-h1,25px);
}

.dealer-auth-v1-card form { display: grid; gap: 9px; padding: 20px 22px 24px; }
.dealer-auth-v1-card label { margin-top: 4px; font-size: var(--dealer-fs-body-lg,15px); font-weight: 850; }
.dealer-auth-v1-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--dealer-text);
  font: inherit;
}
.dealer-auth-v1-card input:focus {
  border-color: var(--dealer-orange);
  outline: 3px solid rgba(242, 106, 33, .14);
}
.dealer-auth-v1-card input:disabled { background: #f4f6f9; }

.dealer-auth-v1-message {
  min-height: 34px;
  margin: 4px 0 0;
  color: #a13f08;
  font-size: var(--dealer-fs-body-lg,15px);
  line-height: 1.45;
}
.dealer-auth-v1-submit {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--dealer-orange);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}
.dealer-auth-v1-submit:disabled { cursor: wait; opacity: .68; }

@media (max-width: 820px) {
  .dealer-auth-v1-status { display: none; }
}

@media (max-width: 520px) {
  .dealer-top-meta .dealer-pill.dealer-auth-v1-button { display: inline-flex; align-items: center; }
  .dealer-top-meta .dealer-pill.dealer-auth-v1-button[hidden] { display: none; }
  .dealer-auth-v1-dialog { align-items: end; padding: 10px; }
  .dealer-auth-v1-card { border-radius: 16px; }
  .dealer-auth-v1-head { padding: 18px 18px 14px; }
  .dealer-auth-v1-card form { padding: 16px 18px 20px; }
}
