/* Styles for listings/templates/listings/register.html
   (moved out of an inline <style> block so browsers cache them). */

.pr-shell {
  display: block;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 16px;
}
.pr-panel-wrap {
  display: flex;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.pr-brand {
  position: relative;
  flex: 0 0 40%;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    #002A5C 0%,
    #064C8D 35%,
    #0B6FBF 70%,
    #1FA6F0 100%
  );
  padding: 40px 32px;
  display: flex;
  align-items: center;
}
.pr-brand-glow-a {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(31, 166, 240, 0.45),
    transparent 70%
  );
}
.pr-brand-glow-b {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 128, 0, 0.35),
    transparent 70%
  );
}
.pr-brand-inner {
  position: relative;
  z-index: 2;
}

.pr-logo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border-radius: 14px;
  padding: 9px 14px;
  margin-bottom: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.pr-logo-img {
  display: block;
  height: 24px;
  width: auto;
}

.pr-headline {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
}
.pr-subhead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 28px;
}
.pr-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pr-trust-list li {
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pr-trust-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.pr-form-panel {
  flex: 1;
  min-width: 0;
  padding: 40px 36px;
  max-height: 90vh;
  overflow-y: auto;
}
.pr-form-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.pr-form-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pr-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pr-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}
.pr-row {
  display: flex;
  gap: 14px;
}
.pr-row .pr-field {
  flex: 1;
  min-width: 0;
}

.pr-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text);
}
.pr-hint {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.pr-driver-note {
  display: block;
  margin-top: -8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.pr-inline-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
}


.pr-field-error {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger);
}
.pr-error-summary {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: var(--dm-bg-fef2f2, #fef2f2);
  color: var(--dm-fg-991b1b, #991b1b);
  font-size: 0.9rem;
}
.pr-error-summary ul { margin: 6px 0 0; padding-left: 18px; }
.pr-phone-row {
  display: flex;
  gap: 10px;
}
.pr-phone-code {
  width: 110px;
  flex-shrink: 0;
}
.pr-phone-number {
  flex: 1;
  min-width: 0;
}

.pr-hidden-fields {
  display: none;
}

.pr-pw-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pr-pw-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-sunken);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-strength-bar {
  margin-top: 10px;
  height: 5px;
  border-radius: 999px;
  background: var(--card-sunken);
  overflow: hidden;
}
.pr-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #ef4444;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}
.pr-strength-label {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.pr-pw-checklist {
  list-style: none;
  margin: 10px 0 0;
  padding: 12px 14px;
  background: var(--card-sunken);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pr-pw-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pr-pw-check-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background: #e2e8f0;
  color: var(--text-muted);
}
.pr-pw-check.pr-pw-check-met {
  color: var(--dm-fg-166534, #166534);
}
.pr-pw-check.pr-pw-check-met .pr-pw-check-icon {
  background: #16a34a;
  color: #fff;
}
.pr-pw-tip {
  display: block;
  margin-top: 10px;
  line-height: 1.5;
}
.pr-match-hint {
  font-weight: 700;
}
.pr-match-hint.pr-match-ok {
  color: var(--success);
}
.pr-match-hint.pr-match-bad {
  color: var(--danger);
}

.pr-consent {
  margin-top: 2px;
}
.pr-consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
.pr-consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.pr-submit-btn {
  width: 100%;
  margin-top: 4px;
}
.pr-next-step {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 12px 0 0;
}
.pr-login-hint {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pr-oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 18px 0;
}
.pr-oauth-divider::before,
.pr-oauth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.pr-oauth-divider span {
  padding: 0 12px;
}
.pr-google-btn-wrap {
  display: flex;
  justify-content: center;
}

@media (max-width: 860px) {
  .pr-shell {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
  }
  .pr-panel-wrap {
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-height: 100dvh;
  }
  .pr-brand {
    flex: none;
    padding: 14px 20px 12px;
  }
  .pr-logo-badge {
    padding: 6px 11px;
    margin-bottom: 8px;
  }
  .pr-logo-img {
    height: 17px;
  }
  .pr-headline {
    font-size: 1.05rem;
    margin: 0 0 5px;
  }
  .pr-subhead {
    font-size: 0.76rem;
    margin-bottom: 9px;
  }
  .pr-trust-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .pr-trust-list li {
    font-size: 0.75rem;
  }
  .pr-form-panel {
    max-height: none;
    overflow-y: visible;
    padding: 18px 16px 26px;
  }
  .pr-row {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 360px) {
  .pr-brand {
    padding: 12px 16px 10px;
  }
  .pr-form-panel {
    padding: 14px 12px 22px;
  }
  .pr-trust-list li {
    font-size: 0.75rem;
  }
}
