/**
 * Shared premium iProply auth pages.
 */

:root {
  --auth-primary: #041427;
  --auth-primary-light: #16345c;
  --auth-text: #0f2747;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-error: #dc2626;
  --auth-error-bg: #fef2f2;
  --auth-success-bg: #ecfdf5;
  --auth-success-text: #0f766e;
  --auth-radius: 12px;
  --auth-shadow: 0 10px 40px rgba(15, 39, 71, 0.12);
  --auth-accent: rgba(200, 166, 99, 0.35);
  --auth-accent-strong: #facc15;
}

* {
  box-sizing: border-box;
}

.auth-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.9), rgba(15, 39, 71, 0.76)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=2200&auto=format&fit=crop&q=82") center/cover fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-shell {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.auth-shell--wide {
  max-width: 1280px;
  grid-template-columns: minmax(0, 0.75fr) minmax(520px, 0.95fr);
}

.auth-brand-panel,
.auth-card {
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(4, 20, 39, 0.16), rgba(4, 20, 39, 0.8)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&auto=format&fit=crop&q=82") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 16%, rgba(250, 204, 21, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  pointer-events: none;
}

.auth-brand-panel > * {
  position: relative;
  z-index: 1;
}

.auth-logo img {
  width: 160px;
  max-height: 70px;
  object-fit: contain;
}

.auth-brand-copy {
  max-width: 600px;
}

.auth-brand-copy span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--auth-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-brand-copy span::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.auth-brand-copy h2 {
  margin: 1rem 0;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-brand-copy h2 em {
  color: var(--auth-accent-strong);
  font-style: normal;
}

.auth-brand-copy p {
  max-width: 540px;
  color: rgba(255,255,255,0.76);
  font-size: 1.05rem;
  line-height: 1.8;
}

.auth-brand-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-brand-stats div {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
}

.auth-brand-stats strong {
  display: block;
  color: var(--auth-accent-strong);
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
}

.auth-brand-stats small {
  color: rgba(255,255,255,0.68);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(1.5rem, 3vw, 2.35rem);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card-head h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--auth-text);
  margin: 0 0 0.35rem;
}

.auth-card-head p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-muted);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--auth-muted);
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--auth-primary);
  background: #f8fafc;
}

.form-group input:hover {
  border-color: #cbd5e1;
}

.form-group input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(30, 59, 90, 0.15);
}

.btn-auth-primary {
  width: 100%;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  color: #041427;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-auth-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 30px rgba(202, 138, 4, 0.25);
  transform: translateY(-1px);
}

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.auth-social button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  color: var(--auth-text);
  background: rgba(255,255,255,0.72);
  font-weight: 700;
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--auth-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.btn-auth-primary:active {
  transform: translateY(1px);
}

.alert-auth {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.alert-auth-error {
  background: var(--auth-error-bg);
  color: var(--auth-error);
  border: 1px solid #fecaca;
}

.alert-auth-success {
  background: var(--auth-success-bg);
  color: var(--auth-success-text);
  border: 1px solid #6ee7b7;
}

.auth-footer {
  text-align: center;
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--auth-border);
  font-size: 0.875rem;
}

.auth-footer a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  font-size: 0.8125rem;
}

.terms-row {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;
}

.terms-row a {
  color: var(--auth-primary);
  font-weight: 700;
}

.remember-row label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--auth-muted);
  cursor: pointer;
}

.remember-row a {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
}

.remember-row a:hover {
  text-decoration: underline;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--auth-text);
}

.form-section-wrap {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--auth-border);
}

.form-section-wrap:last-of-type {
  border-bottom: none;
}

@media (max-width: 768px) {
  .auth-body {
    align-items: flex-start;
    padding: 1rem;
  }

  .auth-shell,
  .auth-shell--wide {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 420px;
  }

  .auth-brand-stats {
    grid-template-columns: 1fr;
  }

  .auth-shell--wide .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Workspace picker --- */

.ws-fieldset {
  border: 0;
  margin: 0 0 1.35rem;
  padding: 0;
}

.ws-legend {
  float: left;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--auth-text);
  margin: 0 0 0.35rem;
  padding: 0;
}

.ws-required-mark {
  color: var(--auth-error);
}

.ws-hint {
  clear: both;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

.ws-single-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 166, 99, 0.35);
  background: linear-gradient(135deg, #fffdf9 0%, #faf8f5 100%);
}

.ws-single-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 59, 90, 0.08);
  color: var(--auth-primary);
  flex-shrink: 0;
}

.ws-single-name {
  font-weight: 700;
  color: var(--auth-text);
  font-size: 0.9375rem;
}

.ws-single-desc {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--auth-muted);
  line-height: 1.45;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

@media (max-width: 1024px) {
  .ws-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ws-grid {
    grid-template-columns: 1fr;
  }
}


.ws-card {
  display: block;
  cursor: pointer;
  border-radius: 10px;
  margin: 0;
}

.ws-card-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ws-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  border: 2px solid var(--auth-border);
  border-radius: 14px;
  background: #fff;
  height: 100%;
  transition: all 0.2s ease;
}

.ws-card:hover .ws-card-body {
  border-color: rgba(200, 166, 99, 0.65);
  box-shadow: 0 10px 24px rgba(15, 39, 71, 0.06);
}

.ws-card:focus-within .ws-card-body {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(30, 59, 90, 0.12);
}

.ws-card:has(.ws-card-input:checked) .ws-card-body {
  border-color: var(--auth-accent-strong);
  background: #fffef2;
  box-shadow: 0 12px 30px rgba(4, 20, 39, 0.08);
}

.ws-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ws-card-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-top: 0.25rem;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.ws-card:has(.ws-card-input:checked) .ws-card-radio {
  border-color: var(--auth-accent-strong);
  background: var(--auth-accent-strong);
}

.ws-card:has(.ws-card-input:checked) .ws-card-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

.ws-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 59, 90, 0.06);
  color: var(--auth-primary);
  flex-shrink: 0;
}

.ws-card-title {
  display: block;
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--auth-text);
}

.ws-card-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

.ws-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.ws-chip {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 39, 71, 0.05);
  color: var(--auth-muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.ws-card:has(.ws-card-input:checked) .ws-chip {
  background: rgba(250, 204, 21, 0.2);
  color: #72540b;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive polish */
.auth-shell,
.auth-card,
.form-row,
.ws-card-body {
  min-width: 0;
}

.auth-body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  .auth-body {
    overflow-x: hidden;
  }
}

@media (max-width: 520px) {
  .auth-body {
    align-items: flex-start;
    padding: 1rem;
  }

  .auth-logo {
    margin: 0.5rem 0 1rem;
  }

  .auth-logo a {
    font-size: 1.45rem;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .remember-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .form-row,
  .auth-shell--wide .form-row {
    grid-template-columns: 1fr;
  }

  .ws-card-body {
    grid-template-columns: auto 1fr;
  }

  .ws-card-icon {
    display: none;
  }
}

/* Rectangular dropdown/select refresh */
.auth-card select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding-right: 2.75rem !important;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--auth-text);
  border-radius: 8px;
}

.auth-card select:not([multiple]):focus {
  border-color: var(--auth-accent-strong);
  box-shadow: 0 0 0 3px var(--auth-accent);
  outline: none;
}

/* --- Premium compact no-scroll auth system --- */

.auth-body {
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.auth-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  height: 100vh;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 0;
  padding: clamp(16px, 2vw, 26px);
}

.auth-shell--wide {
  max-width: none;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
}

.auth-brand-panel {
  min-height: 0;
  height: calc(100vh - clamp(32px, 4vw, 52px));
  border-radius: 28px 0 0 28px;
  padding: clamp(22px, 3vw, 40px);
  justify-content: space-between;
}

.auth-card {
  align-self: stretch;
  justify-self: stretch;
  max-height: calc(100vh - clamp(32px, 4vw, 52px));
  border-radius: 0 28px 28px 0;
  padding: clamp(20px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.auth-card-scroll {
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.72) transparent;
}

.auth-logo img {
  width: clamp(126px, 10vw, 156px);
  max-height: 50px;
}

.auth-brand-copy h2 {
  font-size: clamp(2.15rem, 4.6vw, 4.4rem);
  max-width: 620px;
}

.auth-brand-copy p {
  font-size: 0.98rem;
  line-height: 1.65;
}

.auth-brand-stats div {
  padding: 0.8rem;
  backdrop-filter: blur(14px);
}

.auth-card-head {
  margin-bottom: 1rem;
}

.auth-card-head h1 {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
}

.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 0.82rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  min-height: 44px;
  padding: 0.68rem 0.85rem;
}

.form-group textarea {
  min-height: 82px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--auth-accent-strong);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.auth-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.64rem;
  border-radius: 999px;
  background: rgba(4, 20, 39, 0.06);
  color: var(--auth-text);
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-wizard-card .auth-card-head {
  text-align: left;
}

.auth-steps {
  margin-bottom: 1rem;
}

.auth-step-line {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 39, 71, 0.1);
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.auth-step-line span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #ca8a04);
  transition: width 0.18s ease;
}

.auth-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.auth-step {
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(15, 39, 71, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--auth-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-step.is-active {
  color: var(--auth-primary);
  border-color: rgba(250, 204, 21, 0.62);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.16);
}

.auth-step.is-complete {
  color: #72540b;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.3);
}

.auth-step.is-complete::before {
  content: "\f00c";
  margin-right: 0.32rem;
  font: var(--fa-font-solid);
  color: #ca8a04;
}

.auth-step.is-invalid {
  color: #991b1b !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  background: rgba(254, 226, 226, 0.5) !important;
}

.auth-step.is-invalid::before {
  content: "\f071";
  margin-right: 0.32rem;
  font: var(--fa-font-solid);
  color: #b91c1c;
}

.auth-step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.55rem;
  color: var(--auth-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-step-panel {
  display: none;
  animation: authStepIn 0.18s ease both;
}

.auth-step-panel.is-active {
  display: block;
}

@keyframes authStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-auth-secondary {
  padding: 0.78rem 1rem;
  min-height: 46px;
  border: 1px solid rgba(15, 39, 71, 0.14);
  border-radius: 10px;
  color: var(--auth-text);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  cursor: pointer;
}

.btn-auth-secondary:hover {
  border-color: var(--auth-primary);
}

.auth-field-hint {
  margin: 0.35rem 0 0;
  color: var(--auth-muted);
  font-size: 0.76rem;
}

.auth-field-error {
  min-height: 1rem;
  margin: 0.28rem 0 0;
  color: var(--auth-error);
  font-size: 0.75rem;
  font-weight: 700;
}

.has-error input,
.has-error textarea,
.has-error select {
  border-color: #ef4444;
}

.password-strength {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 39, 71, 0.1);
  margin-top: 0.45rem;
}

.password-strength span {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, #f97316, #facc15);
}

.profile-uploader-group {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  margin-bottom: 0.85rem;
}

.profile-uploader-label {
  color: var(--auth-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-uploader-target {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 2px dashed rgba(250, 204, 21, 0.68);
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(250,248,245,0.95));
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.profile-uploader-target:hover,
.profile-uploader.is-dragover .profile-uploader-target {
  transform: translateY(-1px);
  border-color: var(--auth-accent-strong);
  box-shadow: 0 14px 34px rgba(202, 138, 4, 0.2);
}

.profile-uploader-preview,
.profile-uploader-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-uploader-preview {
  display: grid;
  place-items: center;
  color: var(--auth-primary);
  font-size: 1.6rem;
}

.profile-uploader-preview img {
  object-fit: cover;
}

.profile-uploader-overlay {
  position: absolute;
  inset: auto 8px 8px;
  padding: 0.34rem 0.45rem;
  border-radius: 999px;
  color: #041427;
  background: rgba(250, 204, 21, 0.94);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.profile-uploader-target:hover .profile-uploader-overlay,
.profile-uploader.has-preview .profile-uploader-overlay {
  opacity: 1;
  transform: translateY(0);
}

.profile-uploader input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-uploader-actions {
  display: flex;
  gap: 0.7rem;
}

.auth-link-button {
  border: 0;
  background: transparent;
  color: var(--auth-primary);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-uploader-progress {
  width: 118px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 39, 71, 0.1);
}

.profile-uploader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #facc15, #ca8a04);
  transition: width 0.24s ease;
}

.auth-review {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.auth-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(15, 39, 71, 0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.56);
  color: var(--auth-muted);
  font-size: 0.82rem;
}

.auth-review-row strong {
  color: var(--auth-text);
}

@media (max-height: 760px) and (min-width: 901px) {
  .auth-brand-copy h2 {
    font-size: clamp(1.9rem, 4vw, 3.3rem);
    margin: 0.7rem 0;
  }

  .auth-brand-copy p,
  .auth-card-head p {
    font-size: 0.82rem;
  }

  .auth-brand-stats strong {
    font-size: 1.15rem;
  }

  .auth-card {
    padding: 18px 24px;
  }

  .form-group {
    margin-bottom: 0.62rem;
  }

  .auth-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 900px) {
  .auth-body {
    overflow: auto;
  }

  .auth-shell,
  .auth-shell--wide {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .auth-brand-panel {
    min-height: 240px;
    height: auto;
    border-radius: 24px 24px 0 0;
  }

  .auth-card {
    max-height: none;
    border-radius: 0 0 24px 24px;
  }

  .auth-brand-copy h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
}

@media (max-width: 560px) {
  .auth-shell,
  .auth-shell--wide {
    padding: 0;
  }

  .auth-brand-panel {
    border-radius: 0;
    min-height: 190px;
  }

  .auth-brand-stats {
    display: none;
  }

  .auth-card {
    border-radius: 20px 20px 0 0;
    margin-top: -18px;
  }

  .auth-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-wizard-actions {
    flex-direction: column-reverse;
  }

  .auth-wizard-actions .btn-auth-primary,
  .auth-wizard-actions .btn-auth-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   AGENT LOGIN PAGE
   ============================================================ */

/* Body / shell */
.auth-body--login {
  align-items: flex-start;
  overflow: auto;
}

.auth-shell--login {
  height: auto;
  min-height: 100vh;
  grid-template-columns: minmax(300px, 0.82fr) minmax(440px, 1.18fr);
}

/* Brand panel tweaks */
.auth-shell--login .auth-brand-panel {
  min-height: 0;
  height: calc(100vh - clamp(32px, 4vw, 52px));
  border-radius: 28px 0 0 28px;
  justify-content: space-between;
}

.auth-shell--login .auth-brand-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin: 0.9rem 0;
}

/* Card */
.auth-shell--login .auth-card {
  align-self: stretch;
  max-height: calc(100vh - clamp(32px, 4vw, 52px));
  border-radius: 0 28px 28px 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.72) transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-shell--login .auth-card::-webkit-scrollbar {
  width: 6px;
}
.auth-shell--login .auth-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.6);
}

/* Inner wrapper provides consistent padding */
.auth-card-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* Card head */
.auth-card-head--login {
  margin-bottom: 1.5rem;
  text-align: left;
}

.auth-card-head-eyebrow {
  margin-bottom: 0.75rem;
}

.auth-card-head--login h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.35rem;
}

.auth-card-head--login p {
  font-size: 0.875rem;
  color: var(--auth-muted);
  margin: 0;
}

/* Alert upgrade for login */
.alert-auth {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.alert-auth > i {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.alert-auth p {
  margin: 0;
}

.alert-auth p + p {
  margin-top: 0.3rem;
}

/* Input with icon prefix */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-muted);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrap input {
  padding-left: 2.4rem !important;
}

/* Compact workspace pill picker */
.ws-fieldset--compact {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.ws-legend--compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  float: none;
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-muted);
}

.ws-legend--compact i {
  font-size: 0.75rem;
}

.ws-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1rem;
  border: 1.5px solid var(--auth-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
}

.ws-pill:hover {
  border-color: rgba(250, 204, 21, 0.65);
  background: #fffef5;
  box-shadow: 0 4px 16px rgba(15, 39, 71, 0.06);
}

.ws-pill.is-selected,
.ws-pill:has(.ws-card-input:checked) {
  border-color: #facc15;
  background: linear-gradient(135deg, #fffef0, #fffbdc);
  box-shadow: 0 6px 20px rgba(202, 138, 4, 0.14), 0 0 0 3px rgba(250, 204, 21, 0.18);
  transform: translateY(-1px);
}

.ws-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 20, 39, 0.06);
  color: var(--auth-primary);
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.ws-pill.is-selected .ws-pill-icon,
.ws-pill:has(.ws-card-input:checked) .ws-pill-icon {
  background: linear-gradient(135deg, #041427, #16345c);
  color: #facc15;
}

.ws-pill-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ws-pill-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--auth-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-pill-sub {
  font-size: 0.72rem;
  color: var(--auth-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.ws-pill-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ws-pill.is-selected .ws-pill-check,
.ws-pill:has(.ws-card-input:checked) .ws-pill-check {
  border-color: #facc15;
  background: #facc15;
  color: #041427;
}

/* Login fields spacing */
.login-fields {
  display: flex;
  flex-direction: column;
}

/* Login remember row */
.auth-shell--login .remember-row {
  margin-bottom: 1.25rem;
}

.forgot-link {
  color: var(--auth-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.forgot-link:hover {
  color: #ca8a04;
  text-decoration: underline;
}

/* Login submit button */
.btn-auth-primary--login {
  font-size: 1rem;
  padding: 1rem;
  border-radius: 12px;
  letter-spacing: 0.01em;
  gap: 0.6rem;
}

.btn-auth-primary--login i {
  transition: transform 0.2s ease;
}

.btn-auth-primary--login:hover i {
  transform: translateX(3px);
}

/* Footer */
.auth-footer--login {
  text-align: center;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--auth-muted);
}

.auth-footer-links a {
  color: var(--auth-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-footer-links a:hover {
  color: var(--auth-primary);
}

/* ---- Responsive: tablet (≤ 1040px) ---- */
@media (max-width: 1040px) {
  .auth-body--login {
    overflow: auto;
  }

  .auth-shell--login {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .auth-shell--login .auth-brand-panel {
    height: auto;
    min-height: 260px;
    border-radius: 0 0 0 0;
  }

  .auth-shell--login .auth-card {
    max-height: none;
    border-radius: 0;
    overflow: visible;
    justify-content: flex-start;
  }

  .auth-card-inner {
    padding: 2rem 1.5rem;
  }

  .auth-shell--login .auth-brand-copy h2 {
    font-size: clamp(1.9rem, 6vw, 3.25rem);
    max-width: 760px;
  }
}

/* ---- Responsive: mobile (≤ 640px) ---- */
@media (max-width: 640px) {
  .auth-shell--login .auth-brand-panel {
    min-height: 200px;
    padding: 1.25rem;
  }

  .auth-shell--login .auth-brand-copy p,
  .auth-shell--login .auth-brand-stats {
    display: none;
  }

  .auth-shell--login .auth-brand-copy h2 {
    font-size: 1.95rem;
    margin: 0.5rem 0 0;
  }

  .auth-card-inner {
    padding: 1.5rem 1.1rem;
  }

  .ws-pills {
    flex-direction: column;
  }

  .ws-pill {
    flex: 1 0 100%;
  }
}

/* ---- Responsive: small mobile (≤ 420px) ---- */
@media (max-width: 420px) {
  .auth-shell--login .auth-brand-copy h2 {
    font-size: 1.7rem;
  }

  .auth-card-inner {
    padding: 1.25rem 1rem;
  }

  .auth-footer-links {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

/* ---- Short screens on desktop ---- */
@media (max-height: 720px) and (min-width: 1041px) {
  .auth-shell--login .auth-brand-copy h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  }

  .auth-shell--login .auth-brand-copy p {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .auth-shell--login .auth-brand-stats div {
    padding: 0.65rem;
  }

  .auth-card-inner {
    padding: 1.4rem 2rem;
  }
}


/* Agent registration v2 */
.auth-shell--register .auth-card-scroll {
  max-height: min(100vh - 2rem, 920px);
  overflow-y: auto;
}

.auth-step-list--six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-step-list--six .auth-step {
  font-size: 0.72rem;
  padding: 0.35rem 0.5rem;
  text-align: center;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
}

.form-group--full {
  grid-column: 1 / -1;
}

.auth-otp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
}

.otp-boxes {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.otp-box {
  width: 2.75rem;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
}

.auth-otp-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.signature-pad-wrap {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  background: #fff;
}

.signature-pad {
  width: 100%;
  max-width: 100%;
  height: 140px;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.btn-signature-clear {
  margin-top: 0.5rem;
}

.consent-block .consent-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
}

.consent-block .consent-text a {
  color: var(--auth-primary, #0b3d91);
}

.auth-review--dense .auth-review-row {
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.auth-draft-restore {
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: var(--auth-primary, #0b3d91);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.34rem 0.62rem;
  text-decoration: none;
}

.auth-draft-state {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: #80620f;
}

.auth-draft-state::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

/* Premium agent registration workspace selection */
.auth-shell--register {
  --auth-gold-ring: rgba(250, 204, 21, 0.48);
}

.auth-shell--register .auth-brand-copy span {
  color: #fde68a;
}

.auth-shell--register .auth-card-head {
  position: relative;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid rgba(15, 39, 71, 0.08);
}

.auth-shell--register .auth-card-head p {
  max-width: 580px;
}

.auth-shell--register .auth-card-scroll::-webkit-scrollbar {
  width: 8px;
}

.auth-shell--register .auth-card-scroll::-webkit-scrollbar-track {
  background: rgba(15, 39, 71, 0.06);
  border-radius: 999px;
}

.auth-shell--register .auth-card-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #facc15, #a16207);
  border-radius: 999px;
}

.auth-shell--register .auth-steps {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 1.1rem;
  padding: 0.72rem 0 0.78rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-shell--register .auth-step-line {
  height: 6px;
  background: rgba(15, 39, 71, 0.08);
  box-shadow: inset 0 1px 2px rgba(15, 39, 71, 0.08);
}

.auth-shell--register .auth-step-line span {
  background: linear-gradient(90deg, #facc15 0%, #d6a832 48%, #041427 100%);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.38);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-step-list--six .auth-step {
  position: relative;
  min-height: 36px;
  padding: 0.54rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 39, 71, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(15, 39, 71, 0.04);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.auth-step-list--six .auth-step.is-active {
  color: var(--auth-primary);
  border-color: var(--auth-gold-ring);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(255, 255, 255, 0.84));
  transform: translateY(-1px);
}

.auth-step-list--six .auth-step.is-complete {
  color: #533f07;
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.16);
}

.auth-step-list--six .auth-step.is-complete::before {
  content: "\f00c";
  margin-right: 0.32rem;
  font: var(--fa-font-solid);
  color: #a16207;
}

.ws-fieldset--premium {
  margin-bottom: 1.15rem;
}

.ws-fieldset--premium .ws-legend {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.12;
  color: var(--auth-text);
  letter-spacing: 0;
}

.ws-intro {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  clear: both;
  margin-bottom: 0.95rem;
}

.ws-fieldset--premium .ws-hint {
  margin: 0;
  max-width: 780px;
  color: #526277;
  font-size: 0.86rem;
}

.ws-help {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(250, 204, 21, 0.36);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: #8a6408;
  cursor: help;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ws-help:hover,
.ws-help:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.74);
  box-shadow: 0 10px 24px rgba(202, 138, 4, 0.16);
}

.ws-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 10;
  width: min(280px, calc(100vw - 2rem));
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 12px;
  background: rgba(4, 20, 39, 0.94);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  line-height: 1.45;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.ws-help:hover + .ws-tooltip,
.ws-help:focus-visible + .ws-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-stack--premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
}

.ws-card--premium {
  position: relative;
  min-width: 0;
  border-radius: 18px;
  isolation: isolate;
}

.ws-card--premium .ws-card-body {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  padding: 1rem;
  border: 1px solid rgba(15, 39, 71, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(248,250,252,0.66)),
    radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.16), transparent 36%);
  box-shadow: 0 14px 38px rgba(15, 39, 71, 0.08);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws-card--premium .ws-card-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.2), transparent 32%),
    linear-gradient(315deg, rgba(4, 20, 39, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.ws-card--premium:hover .ws-card-body,
.ws-card--premium:focus-within .ws-card-body {
  border-color: rgba(250, 204, 21, 0.56);
  box-shadow: 0 20px 46px rgba(15, 39, 71, 0.12), 0 0 0 4px rgba(250, 204, 21, 0.1);
  transform: translateY(-3px);
}

.ws-card--premium:hover .ws-card-body::before,
.ws-card--premium:focus-within .ws-card-body::before,
.ws-card--premium.is-selected .ws-card-body::before,
.ws-card--premium:has(.ws-card-input:checked) .ws-card-body::before {
  opacity: 1;
}

.ws-card--premium.is-selected .ws-card-body,
.ws-card--premium:has(.ws-card-input:checked) .ws-card-body {
  border-color: rgba(250, 204, 21, 0.82);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(255, 251, 235, 0.8)),
    radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.22), transparent 38%);
  box-shadow: 0 24px 56px rgba(15, 39, 71, 0.14), 0 0 0 1px rgba(250, 204, 21, 0.36), 0 0 28px rgba(250, 204, 21, 0.18);
  transform: translateY(-2px) scale(1.012);
}

.ws-card--premium .ws-card-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.58rem;
}

.ws-card--premium .ws-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, #041427, #16345c);
  color: #facc15;
  box-shadow: 0 14px 28px rgba(4, 20, 39, 0.18);
}

.ws-card--premium .ws-card-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0.28rem 0.54rem;
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.16);
  color: #6f5108;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: wsBadgeFloat 3.4s ease-in-out infinite;
}

.ws-card--premium:nth-child(2) .ws-card-badge {
  animation-delay: 0.35s;
}

.ws-card--premium:nth-child(3) .ws-card-badge {
  animation-delay: 0.7s;
}

@keyframes wsBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.ws-card--premium .ws-card-radio {
  width: 30px;
  height: 30px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 39, 71, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: transparent;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.86);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ws-card--premium.is-selected .ws-card-radio,
.ws-card--premium:has(.ws-card-input:checked) .ws-card-radio {
  border-color: #facc15;
  background: #facc15;
  color: #041427;
  transform: rotate(360deg) scale(1.04);
}

.ws-card--premium .ws-card-radio::after {
  display: none;
}

.ws-card--premium .ws-card-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ws-card-eyebrow {
  margin-bottom: 0.28rem;
  color: #8a6408;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ws-card--premium .ws-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  line-height: 1.12;
  color: #071a31;
}

.ws-card--premium .ws-card-desc {
  margin-top: 0.48rem;
  min-height: 5.4em;
  color: #526277;
  font-size: 0.8rem;
  line-height: 1.5;
}

.ws-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.78rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 39, 71, 0.08);
}

.ws-card-features span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 27px;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(15, 39, 71, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #223650;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.ws-card-features span::before {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  margin-right: 0.34rem;
  border-radius: 999px;
  background: #d6a832;
  flex: 0 0 auto;
}

.ws-single-card--premium {
  align-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255, 251, 235, 0.76)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.2), transparent 38%);
  box-shadow: 0 18px 42px rgba(15, 39, 71, 0.1);
}

.ws-single-card--premium .ws-card-badge {
  display: inline-flex;
  margin-bottom: 0.3rem;
  padding: 0.26rem 0.54rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.16);
  color: #6f5108;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .auth-form--register .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 1180px) {
  .ws-stack--premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .auth-step-list--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .otp-box {
    width: 2.25rem;
    height: 2.65rem;
  }

  .auth-shell--register .auth-steps {
    position: static;
  }

  .auth-step-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
  }

  .ws-stack--premium {
    grid-template-columns: 1fr;
  }

  .ws-card--premium .ws-card-body {
    padding: 0.95rem;
  }

  .ws-card--premium .ws-card-desc {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .ws-intro {
    align-items: center;
  }

  .ws-tooltip {
    right: auto;
    left: 0;
  }

  .ws-card--premium .ws-card-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ws-card--premium .ws-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
  }

  .ws-card--premium .ws-card-badge {
    font-size: 0.62rem;
  }

  .ws-card-features span {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-card--premium .ws-card-body,
  .ws-card--premium .ws-card-body::before,
  .ws-card--premium .ws-card-radio,
  .auth-shell--register .auth-step-line span,
  .auth-step-panel,
  .ws-card--premium .ws-card-badge {
    animation: none;
    transition: none;
  }
}

/* Compact premium workspace picker on the agent login page */
.auth-body--login {
  align-items: flex-start;
  overflow: auto;
}

.auth-shell--login {
  height: auto;
  min-height: 100vh;
}

.auth-shell--login .auth-brand-panel {
  min-height: 0;
}

.auth-shell--login .auth-card {
  justify-content: flex-start;
  gap: 0;
  overflow: visible;
}

.auth-shell--login .auth-card-head {
  margin-bottom: 0.7rem;
}

.auth-shell--login .auth-card-head h1 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.auth-shell--login .auth-trust-row,
.auth-shell--login .ws-fieldset--premium {
  margin-bottom: 0.7rem;
}

.auth-shell--login .ws-fieldset--premium .ws-legend {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.auth-shell--login .ws-intro {
  margin-bottom: 0.7rem;
}

.auth-shell--login .ws-fieldset--premium .ws-hint {
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-shell--login .ws-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.auth-shell--login .ws-card--premium {
  border-radius: 14px;
}

.auth-shell--login .ws-card--premium .ws-card-body {
  gap: 0.55rem;
  min-height: 0;
  padding: 0.8rem;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 39, 71, 0.07);
}

.auth-shell--login .ws-card--premium:hover .ws-card-body,
.auth-shell--login .ws-card--premium:focus-within .ws-card-body,
.auth-shell--login .ws-card--premium.is-selected .ws-card-body,
.auth-shell--login .ws-card--premium:has(.ws-card-input:checked) .ws-card-body {
  transform: none;
}

.auth-shell--login .ws-card--premium .ws-card-top {
  gap: 0.45rem;
}

.auth-shell--login .ws-card--premium .ws-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.auth-shell--login .ws-card--premium .ws-card-badge {
  min-height: 24px;
  padding: 0.22rem 0.48rem;
  font-size: 0.64rem;
  animation: none;
}

.auth-shell--login .ws-card--premium .ws-card-radio {
  width: 26px;
  height: 26px;
}

.auth-shell--login .ws-card--premium .ws-card-title {
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.15;
}

.auth-shell--login .ws-card--premium .ws-card-desc {
  min-height: 0;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.42;
}

.auth-shell--login .ws-card-chips {
  gap: 0.28rem;
  margin-top: 0.55rem;
}

.auth-shell--login .ws-chip {
  padding: 0.2rem 0.45rem;
  font-size: 0.66rem;
}

.auth-shell--login .form-group {
  margin-bottom: 0.75rem;
}

.auth-shell--login .remember-row {
  margin-bottom: 0.85rem;
}

.auth-shell--login .auth-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

@media (max-height: 760px) and (min-width: 1041px) {
  .auth-shell--login .auth-brand-copy h2 {
    font-size: clamp(2rem, 3.6vw, 3.45rem);
  }

  .auth-shell--login .auth-brand-copy p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .auth-shell--login .auth-brand-stats div {
    padding: 0.7rem;
  }

  .auth-shell--login .auth-card {
    padding: 18px 24px;
  }

  .auth-shell--login .auth-trust-row,
  .auth-shell--login .ws-intro {
    display: none;
  }
}

@media (max-width: 1180px) {
  .auth-shell--login .ws-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .auth-shell--login .auth-card {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .auth-shell--login .ws-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell--login .ws-card--premium .ws-card-body {
    padding: 0.78rem;
  }

  .auth-shell--login .ws-card--premium .ws-card-desc,
  .auth-shell--login .ws-card-chips {
    display: none;
  }
}

/* Auth database setup screen */
.auth-setup-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.auth-setup-card {
  width: min(560px, 100%);
  padding: 2.25rem 2rem;
  border-radius: 22px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 28px 64px rgba(4, 20, 39, 0.28);
  backdrop-filter: blur(18px);
}

.auth-setup-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-light));
  color: var(--auth-accent-strong);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.auth-setup-kicker {
  margin: 0 0 0.35rem;
  color: var(--auth-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-setup-card h1 {
  margin: 0 0 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--auth-text);
  line-height: 1.15;
}

.auth-setup-lead {
  margin: 0 0 1.25rem;
  color: var(--auth-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.auth-setup-progress {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.auth-setup-progress__bar {
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #ca8a04);
}

.auth-setup-progress__bar.is-active {
  animation: authSetupPulse 1.4s ease-in-out infinite;
}

.auth-setup-progress__bar.is-complete {
  width: 100%;
  animation: none;
}

@keyframes authSetupPulse {
  0% { width: 18%; opacity: 0.65; }
  50% { width: 82%; opacity: 1; }
  100% { width: 18%; opacity: 0.65; }
}

.auth-setup-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.auth-setup-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 39, 71, 0.04);
  border: 1px solid rgba(15, 39, 71, 0.06);
}

.auth-setup-step--success .auth-setup-step__icon { color: #059669; }
.auth-setup-step--error .auth-setup-step__icon { color: var(--auth-error); }
.auth-setup-step--pending .auth-setup-step__icon { color: var(--auth-primary-light); }

.auth-setup-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.auth-setup-step__body strong { color: var(--auth-text); }
.auth-setup-step__body small { color: var(--auth-muted); }

.auth-setup-tables h2 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--auth-muted);
}

.auth-setup-tables ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.auth-setup-tables li.is-ok { color: #059669; }
.auth-setup-tables li.is-missing { color: var(--auth-muted); }

.auth-setup-actions {
  display: grid;
  gap: 0.75rem;
}

.auth-setup-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--auth-muted);
  text-align: center;
}

.phone-verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.btn-phone-verify {
  min-height: 46px;
  padding: 0 0.95rem;
  border: 1px solid rgba(250, 204, 21, 0.6);
  border-radius: 10px;
  color: #041427;
  background: linear-gradient(135deg, #facc15, #d99b08);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-phone-verify:hover {
  filter: brightness(0.98);
}

.btn-phone-verify:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.btn-phone-verify.is-verified {
  border-color: #16a34a;
  color: #fff;
  background: #16a34a;
}

.inline-otp-panel {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(15, 39, 71, 0.1);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
}

.inline-otp-panel .auth-otp-actions {
  margin-top: 0.75rem;
}

.otp-timer {
  margin-top: 0.45rem;
}

.enhanced-select {
  display: grid;
  gap: 0.55rem;
}

.enhanced-select-search {
  width: 100%;
  min-height: 42px;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  color: var(--auth-text);
  background: #fff;
  font: inherit;
}

.enhanced-select-search:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(30, 59, 90, 0.15);
}

.enhanced-select select {
  min-height: 46px;
}

.enhanced-select--multi select {
  min-height: 120px;
  padding-block: 0.45rem;
}

.enhanced-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 0;
}

.enhanced-chip {
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: #041427;
  background: rgba(250, 204, 21, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.conditional-field {
  margin-top: 0.75rem;
}

@media (max-width: 540px) {
  .phone-verify-row {
    grid-template-columns: 1fr;
  }

  .btn-phone-verify {
    width: 100%;
  }
}

/* Agent registration mockup refresh */
.agent-reg-shell {
  width: min(100%, 1280px);
  min-height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0 auto;
  color: #081b3b;
}

.agent-reg-brand,
.agent-reg-card {
  border: 1px solid rgba(8, 27, 59, 0.12);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(8, 27, 59, 0.13);
  overflow: hidden;
}

.agent-reg-brand {
  position: relative;
  min-height: 680px;
  padding: 1.45rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 31, 61, 0.88), rgba(0, 31, 61, 0.7)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1100&auto=format&fit=crop&q=80") center bottom/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.agent-reg-brand .auth-logo img {
  width: 122px;
  max-height: 46px;
  object-fit: contain;
}

.agent-reg-brand__copy h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font: 800 clamp(1.65rem, 3vw, 2.45rem)/1.05 'Outfit', sans-serif;
  letter-spacing: 0;
}

.agent-reg-brand__copy p {
  margin: 0;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.65;
}

.agent-reg-brand__stats {
  display: grid;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
}

.agent-reg-brand__stats i {
  width: 20px;
  color: #f7b801;
}

.agent-reg-card {
  background: #fff;
}

.agent-reg-top {
  min-height: 92px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #001f3d, #052d4f);
}

.agent-reg-step-kicker {
  display: block;
  margin-bottom: 0.24rem;
  color: #f7b801;
  font-size: 0.78rem;
  font-weight: 900;
}

.agent-reg-top h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.agent-reg-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.agent-reg-dots span {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.agent-reg-dots span::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 0.65rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
}

.agent-reg-dots span:last-child::after {
  display: none;
}

.agent-reg-dots span.is-active,
.agent-reg-dots span.is-complete {
  border-color: #f7b801;
  background: #f7b801;
}

.agent-reg-card .auth-form {
  display: block;
}

.agent-reg-card .auth-steps {
  display: none;
}

.agent-reg-card .auth-step-panel {
  padding: 1.25rem 1.35rem 1.15rem;
}

.agent-reg-card .auth-step-panel:not(.is-active) {
  display: none;
}

.agent-reg-intro,
.agent-reg-card .auth-muted {
  margin: 0 0 1.1rem;
  color: #263d68;
  font-size: 0.86rem;
  font-weight: 700;
}

.agent-reg-card .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.agent-reg-card .form-group {
  margin-bottom: 0.95rem;
}

.agent-reg-card .form-group--full {
  grid-column: 1 / -1;
}

.agent-reg-card label,
.agent-reg-card .profile-uploader-label {
  margin-bottom: 0.38rem;
  color: #162d57;
  font-size: 0.76rem;
  font-weight: 800;
}

.agent-reg-card label small {
  color: #687892;
  font-weight: 700;
}

.agent-reg-card input,
.agent-reg-card select,
.agent-reg-card textarea {
  min-height: 44px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  color: #09244a;
  background: #fff;
  font-size: 0.88rem;
}

.agent-reg-card textarea {
  min-height: 82px;
}

.agent-reg-card input:focus,
.agent-reg-card select:focus,
.agent-reg-card textarea:focus,
.enhanced-select-search:focus {
  border-color: #0b5f9c;
  box-shadow: 0 0 0 3px rgba(11, 95, 156, 0.13);
}

.agent-reg-card .password-field input {
  padding-right: 2.8rem;
}

.agent-reg-card .password-toggle {
  right: 0.45rem;
}

.phone-verify-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.btn-phone-verify {
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  padding: 0 1.05rem;
  background: linear-gradient(135deg, #ffc928, #e7a900);
  color: #001f3d;
  box-shadow: 0 9px 18px rgba(231, 169, 0, 0.22);
}

.auth-verified-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #087a3a;
  background: #dcfce7;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.agent-reg-card .btn-auth-primary,
.agent-reg-card .btn-auth-secondary {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
}

.agent-reg-card .btn-auth-primary {
  border: 0;
  color: #001f3d;
  background: linear-gradient(135deg, #ffc928, #e7a900);
}

.agent-reg-card .btn-auth-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.agent-reg-card .btn-auth-secondary {
  border: 1px solid #d7e0ed;
  color: #0b244a;
  background: #fff;
}

.agent-reg-card .auth-wizard-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.35rem;
}

.agent-reg-card .auth-wizard-actions > span {
  display: block;
}

.agent-reg-card .profile-uploader {
  display: grid;
  justify-items: center;
  padding: 0;
  border: 0;
}

.agent-reg-card .profile-uploader-target {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border-color: #ccd7e6;
}

.agent-reg-card .profile-uploader-actions,
.agent-reg-card .profile-uploader-progress,
.agent-reg-card .auth-field-hint {
  font-size: 0.74rem;
}

.enhanced-select {
  display: grid;
  gap: 0.45rem;
}

.enhanced-select-search {
  min-height: 38px;
  border-radius: 7px;
  border-color: #d7e0ed;
  font-size: 0.84rem;
}

.enhanced-select--multi select {
  min-height: 138px;
  padding: 0.45rem;
}

.enhanced-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.enhanced-chip {
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
  color: #0a254f;
  background: #eef4fb;
  font-size: 0.72rem;
  font-weight: 800;
}

.signature-pad-wrap {
  border-radius: 8px;
}

.signature-pad {
  width: 100%;
  max-width: 100%;
  height: 120px;
  border-radius: 8px;
}

.consent-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  margin: 0.4rem 0 0.9rem;
}

.consent-text {
  color: #30415f;
  font-size: 0.82rem;
  line-height: 1.5;
}

.agent-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.agent-review-card {
  padding: 0.95rem;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #fff;
}

.agent-review-card h3 {
  margin: 0 0 0.65rem;
  color: #0b244a;
  font-size: 0.88rem;
}

.agent-review-card .auth-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.18rem 0;
  color: #2f405b;
  font-size: 0.8rem;
}

.agent-review-card .auth-review-row strong {
  color: #172d52;
}

.agent-review-card .auth-review-row span {
  text-align: right;
}

.agent-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 14, 32, 0.74);
}

.agent-otp-modal[hidden] {
  display: none;
}

.agent-otp-dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #001f3d, #063457);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.agent-otp-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.agent-otp-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #f7b801;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.8rem;
}

.agent-otp-dialog h2 {
  margin: 0 0 0.55rem;
  color: #fff;
}

.agent-otp-dialog p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.agent-otp-dialog .otp-boxes {
  justify-content: center;
  margin-bottom: 1rem;
}

.agent-otp-dialog .otp-box {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 1.2rem;
}

.agent-otp-dialog .btn-auth-primary {
  width: 100%;
}

.agent-otp-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .agent-reg-shell {
    grid-template-columns: 1fr;
  }

  .agent-reg-brand {
    min-height: auto;
    gap: 1.25rem;
  }
}

@media (max-width: 680px) {
  .agent-reg-shell {
    min-height: 100vh;
    width: 100%;
  }

  .agent-reg-brand,
  .agent-reg-card {
    border-radius: 0;
  }

  .agent-reg-top,
  .agent-reg-card .auth-step-panel {
    padding-inline: 1rem;
  }

  .agent-reg-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-reg-card .form-row,
  .agent-reg-card .auth-wizard-actions,
  .agent-review-grid {
    grid-template-columns: 1fr;
  }

  .agent-reg-card .auth-wizard-actions > span {
    display: none;
  }
}

/* ==========================================================================
   Premium Custom Select Dropdown Styles
   ========================================================================== */

/* Custom Select Container */
.custom-select-container {
  position: relative;
  width: 100%;
}

/* Custom Select Trigger */
.custom-select-trigger {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background-color: #fff;
  color: #09244a;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.custom-select-container.is-open .custom-select-trigger {
  border-color: #0b5f9c;
  box-shadow: 0 0 0 3px rgba(11, 95, 156, 0.13);
}

.custom-select-trigger:focus {
  outline: none;
  border-color: #0b5f9c;
  box-shadow: 0 0 0 3px rgba(11, 95, 156, 0.13);
}

/* Selected Values and Chips */
.custom-select-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  max-width: 90%;
}

.custom-select-placeholder {
  color: #687892;
  font-size: 0.88rem;
}

.custom-select-selected-text {
  font-size: 0.88rem;
  color: #09244a;
}

.custom-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #001f3d; /* Premium Navy */
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(255, 201, 40, 0.35); /* Gold outline hint */
  line-height: 1;
}

.custom-select-chip-remove {
  background: none;
  border: 0;
  color: #ffc928; /* Gold X icon */
  padding: 0 0 0 0.15rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.custom-select-chip-remove:hover {
  color: #ffffff;
}

.custom-select-arrow {
  color: #687892;
  transition: transform 0.2s;
  margin-left: 0.55rem;
  font-size: 0.8rem;
}

.custom-select-container.is-open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.custom-select-panel {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(0, 31, 61, 0.12);
  z-index: 1050; /* Above all other layers */
  display: none;
  overflow: hidden;
}

/* Search wrap and input inside panel */
.custom-select-search-wrap {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #eef2f6;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  position: relative;
}

.custom-select-search {
  width: 100%;
  min-height: 36px !important;
  padding: 0.45rem 0.75rem 0.45rem 1.85rem !important;
  border: 1px solid #cfd8e6 !important;
  border-radius: 6px !important;
  font-size: 0.84rem !important;
  background: #fff !important;
  color: #09244a !important;
}

.custom-select-search-icon {
  position: absolute;
  left: 1.45rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Action Bar (Select All / Clear All) */
.custom-select-actions {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid #eef2f6;
  background-color: #f8fafc;
  font-size: 0.76rem;
}

.custom-select-action-btn {
  background: none;
  border: 0;
  color: #0b5f9c;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.custom-select-action-btn:hover {
  color: #ca8a04;
}

/* Options List and Option Items */
.custom-select-options {
  max-height: 220px;
  overflow-y: auto;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  color: #09244a;
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s;
}

.custom-select-option:hover,
.custom-select-option.is-focused {
  background-color: rgba(250, 204, 21, 0.08); /* Soft gold tint */
  color: #001f3d;
}

.custom-select-option.is-selected {
  background-color: rgba(250, 204, 21, 0.15); /* Gold background tint */
  font-weight: 700;
}

.custom-select-option-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #cfd8e6;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.custom-select-option.is-selected .custom-select-option-checkbox {
  background-color: #ffc928; /* Gold fill */
  border-color: #ffc928;
}

.custom-select-option-checkbox::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  color: #001f3d; /* Dark navy check */
  font-size: 0.68rem;
  display: none;
}

.custom-select-option.is-selected .custom-select-option-checkbox::after {
  display: block;
}

/* Hidden Native Select */
.custom-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Visual Disable state for Step 1 button */
.agent-reg-card .btn-auth-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto !important; /* Allow click so we can show validation message */
}

/* ==========================================================================
   Premium Toast Notifications & Error Highlights
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2100;
  pointer-events: none;
  max-width: 380px;
  width: min(100% - 48px, 380px);
}

.premium-toast {
  pointer-events: auto;
  background-color: #001f3d; /* Premium Navy */
  color: #fff;
  border-left: 4px solid #ffc928; /* Gold Accent */
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 31, 61, 0.28);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  transition: opacity 0.3s, transform 0.3s;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.premium-toast.is-hiding {
  opacity: 0;
  transform: scale(0.9) translateX(30px);
}

.premium-toast-icon {
  color: #ffc928; /* Gold icon color */
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.premium-toast-body {
  flex-grow: 1;
  font-weight: 700;
}

.premium-toast-close {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  margin-left: 0.45rem;
  flex-shrink: 0;
}

.premium-toast-close:hover {
  color: #fff;
}

/* Enhanced Form Error Highlights */
.form-group.has-error label,
.form-group.has-error .profile-uploader-label,
.remember-row.has-error span {
  color: #e11d48 !important; /* Rose/Red label */
}

.form-group.has-error input[type="text"],
.form-group.has-error input[type="email"],
.form-group.has-error input[type="tel"],
.form-group.has-error input[type="password"],
.form-group.has-error select,
.form-group.has-error textarea,
.form-group.has-error .custom-select-trigger,
.form-group.has-error .signature-pad-wrap {
  border-color: #e11d48 !important; /* Red border */
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important; /* Subtle red glow */
}

.form-group.has-error .auth-field-error {
  color: #e11d48 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  margin-top: 0.35rem !important;
  display: block !important;
}

/* Invalid/Warning state for Step Progress indicators */
.auth-step-list--six .auth-step.is-invalid {
  color: #991b1b !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  background: rgba(254, 226, 226, 0.5) !important;
}

.auth-step-list--six .auth-step.is-invalid::before {
  content: "\f071" !important; /* Warning icon (fa-exclamation-triangle) */
  margin-right: 0.32rem;
  font: var(--fa-font-solid);
  color: #b91c1c;
}

.agent-reg-dots span.is-invalid {
  border-color: #ef4444 !important;
  background: #ef4444 !important;
}

/* Agent login final responsive pass */
.auth-body--login {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
  overflow-x: clip;
  overflow-y: auto;
}

.auth-body--login .auth-shell--login {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.auth-shell--login .auth-brand-panel {
  height: auto;
  min-height: calc(100vh - clamp(32px, 4vw, 52px));
  min-height: calc(100dvh - clamp(32px, 4vw, 52px));
}

.auth-shell--login .auth-card {
  max-height: none;
  min-height: calc(100vh - clamp(32px, 4vw, 52px));
  min-height: calc(100dvh - clamp(32px, 4vw, 52px));
  overflow: visible;
  justify-content: center;
}

.auth-shell--login .auth-card-inner {
  width: min(100%, 540px);
  min-width: 0;
}

.auth-shell--login .ws-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.auth-shell--login .ws-pill {
  width: 100%;
  flex: none;
}

.auth-shell--login .remember-row,
.auth-shell--login .auth-footer-links {
  flex-wrap: wrap;
}

.auth-shell--login .form-group input {
  min-width: 0;
}

@media (max-width: 1040px) {
  .auth-body--login .auth-shell--login {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: clamp(0.85rem, 3vw, 1.25rem);
  }

  .auth-shell--login .auth-brand-panel,
  .auth-shell--login .auth-card {
    min-height: 0;
  }

  .auth-shell--login .auth-brand-panel {
    border-radius: 24px 24px 0 0;
    gap: 2rem;
  }

  .auth-shell--login .auth-card {
    border-radius: 0 0 24px 24px;
  }
}

@media (max-width: 640px) {
  .auth-body--login .auth-shell--login {
    padding: 0;
  }

  .auth-shell--login .auth-brand-panel {
    border-radius: 0;
  }

  .auth-shell--login .auth-card {
    border-radius: 18px 18px 0 0;
    margin-top: -16px;
  }

  .auth-shell--login .auth-card-inner {
    padding: 1.45rem 1rem 1.25rem;
  }

  .auth-shell--login .remember-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (max-width: 420px) {
  .auth-shell--login .ws-pills {
    grid-template-columns: 1fr;
  }

  .auth-shell--login .auth-footer-links {
    align-items: center;
    flex-direction: column;
  }

  .auth-shell--login .auth-footer-links span {
    display: none;
  }
}




/* --- iProply Premium Profile & Completion Meter --- */
.profile-uploader-group { margin-bottom: 2rem; }
.profile-uploader-label { display: block; margin-bottom: 1rem; font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--auth-primary); }
.profile-uploader-main { display: flex; align-items: center; gap: 2rem; background: #fff; border-radius: 20px; padding: 1.5rem; border: 1px solid var(--auth-border); box-shadow: 0 4px 20px rgba(15, 39, 71, 0.05); }
.profile-uploader-circle { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.profile-uploader-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-uploader-dropzone { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px dashed rgba(202, 138, 4, 0.3); background: #f8fafc; cursor: pointer; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.profile-uploader-circle:hover .profile-uploader-dropzone { border-color: #facc15; background: #fffef2; transform: scale(1.02); box-shadow: 0 10px 25px rgba(250, 204, 21, 0.15); }
.profile-uploader-preview { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.profile-uploader-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-uploader-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--auth-muted); }
.profile-uploader-placeholder i { font-size: 2rem; }
.profile-uploader-placeholder span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.profile-uploader-overlay { position: absolute; inset: 0; background: rgba(4, 20, 39, 0.65); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: #fff; opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(4px); }
.profile-uploader-circle:hover .profile-uploader-overlay { opacity: 1; }
.profile-uploader-overlay i { font-size: 1.5rem; color: #facc15; }
.profile-uploader-overlay span { font-size: 0.7rem; font-weight: 700; }
.profile-uploader-loader { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.85); display: flex; align-items: center; justify-content: center; z-index: 10; }
.profile-uploader-loader svg { width: 2.5rem; height: 2.5rem; color: #ca8a04; animation: auth-spin 1s linear infinite; }
@keyframes auth-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.profile-uploader-success-icon { position: absolute; inset: 0; background: rgba(16, 185, 129, 0.9); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem; z-index: 11; }
.profile-uploader-info { flex: 1; }
.profile-uploader-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.btn-profile-action { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid var(--auth-border); border-radius: 99px; background: #fff; color: var(--auth-text); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-profile-action:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-profile-remove { color: #dc2626; }
.btn-profile-remove:hover { background: #fef2f2; border-color: #fecaca; }
.profile-uploader-meta { max-width: 240px; }
.profile-uploader-progress-wrap { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.profile-uploader-progress-bar { flex: 1; height: 6px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.profile-uploader-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #facc15, #ca8a04); transition: width 0.3s; }
.profile-uploader-progress-text { font-size: 0.75rem; font-weight: 700; color: var(--auth-muted); min-width: 30px; }

.profile-completion-meter { background: #fff; border: 1px solid var(--auth-border); border-radius: 20px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(15, 39, 71, 0.05); }
.completion-meter-head { margin-bottom: 1rem; }
.completion-meter-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.completion-meter-info h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--auth-primary); margin: 0; }
.completion-meter-info p { font-size: 0.9rem; font-weight: 800; color: #ca8a04; margin: 0; }
.completion-meter-bar { width: 100%; height: 10px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.completion-meter-bar span { display: block; height: 100%; background: linear-gradient(90deg, #facc15, #ca8a04); border-radius: 99px; transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.completion-meter-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.checklist-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--auth-muted); transition: color 0.2s; }
.checklist-item i { font-size: 0.9rem; color: #cbd5e1; transition: color 0.2s, transform 0.2s; }
.checklist-item.is-complete { color: var(--auth-primary); }
.checklist-item.is-complete i { color: #10b981; transform: scale(1.1); }
@media (max-width: 640px) {
  .profile-uploader-main { flex-direction: column; text-align: center; gap: 1.5rem; }
  .profile-uploader-actions { justify-content: center; }
  .profile-uploader-meta { max-width: none; }
  .completion-meter-checklist { grid-template-columns: 1fr; }
}

/* Premium Pricing Calculator Styles */
.pricing-calculator-premium {
    --pricing-navy: #0a1128;
    --pricing-gold: #f1bd22;
    --pricing-gold-light: #fdf5d9;
    --pricing-gold-muted: #e5b31f;
}

.shadow-navy-premium {
    box-shadow: 0 10px 30px -10px rgba(10, 17, 40, 0.1), 0 4px 10px -5px rgba(10, 17, 40, 0.05);
}

.service-area-list::-webkit-scrollbar {
    width: 5px;
}
.service-area-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}
.service-area-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
.service-area-list::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.service-add-on-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-add-on-card:hover {
    transform: translateY(-2px);
}

.custom-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

.custom-slider-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 3px;
}

.custom-slider-input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--pricing-navy);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -7px;
    border: 3px solid var(--pricing-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.custom-slider-input:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Sticky Summary Animation */
.sticky-summary-card {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
