body.vmr-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 143, 114, 0.12), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(27, 77, 62, 0.08), transparent 46%),
    #f7faf9;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
}

.vmr-auth-stage {
  min-height: 100vh;
  padding: 128px 16px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vmr-auth-shell {
  width: 100%;
  max-width: 1220px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: #ffffff;
  border: 1px solid rgba(27, 77, 62, 0.14);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 90px -20px rgba(15, 23, 42, 0.22);
}

.vmr-auth-shell.vmr-auth-shell-reverse .vmr-auth-hero {
  order: 2;
}

.vmr-auth-shell.vmr-auth-shell-reverse .vmr-auth-panel {
  order: 1;
}

.vmr-auth-hero {
  position: relative;
  padding: 52px 46px;
  color: #f7faf9;
  background: linear-gradient(160deg, #1b4d3e 0%, #123b30 100%);
}

.vmr-auth-hero::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(247, 250, 249, 0.14);
  border-radius: 22px;
  pointer-events: none;
}

.vmr-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(247, 250, 249, 0.1);
  border: 1px solid rgba(247, 250, 249, 0.18);
  color: #f7faf9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.vmr-auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.vmr-auth-brand-mark {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(247, 250, 249, 0.16);
  animation: vmrLogoFloat 3.6s ease-in-out infinite;
}

.vmr-auth-brand-mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  animation: vmrLogoPulse 3.6s ease-in-out infinite;
}

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

@keyframes vmrLogoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.vmr-auth-brand-copy small {
  display: block;
  margin-bottom: 6px;
  color: rgba(247, 250, 249, 0.65);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.vmr-auth-brand-copy h1 {
  margin: 0;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
}

.vmr-auth-copy h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
}

.vmr-auth-copy p {
  margin: 0;
  color: rgba(247, 250, 249, 0.75);
  font-size: 15px;
  line-height: 1.8;
}

.vmr-auth-points {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.vmr-auth-point {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(247, 250, 249, 0.07);
  border: 1px solid rgba(247, 250, 249, 0.12);
}

.vmr-auth-point strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.vmr-auth-point span {
  color: rgba(247, 250, 249, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.vmr-auth-panel {
  padding: 50px 42px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.vmr-auth-panel-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.vmr-auth-eyebrow {
  margin-bottom: 8px;
  color: #1b4d3e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.vmr-auth-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
}

.vmr-auth-subtitle {
  margin: 0 0 26px;
  color: #52685d;
  font-size: 14px;
  line-height: 1.7;
}

.vmr-auth-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid transparent;
}

.vmr-auth-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.vmr-auth-alert.success {
  background: rgba(47, 143, 114, 0.1);
  color: #123b30;
  border-color: rgba(27, 77, 62, 0.25);
}

.vmr-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vmr-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vmr-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #52685d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vmr-auth-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 12px;
  background: #f7faf9;
  border: 1px solid rgba(27, 77, 62, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vmr-auth-input:focus-within {
  border-color: rgba(27, 77, 62, 0.6);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.08);
}

.vmr-auth-input-icon {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  color: #1b4d3e;
  font-size: 15px;
  line-height: 1;
}

.vmr-auth-input input,
.vmr-auth-input textarea,
.vmr-auth-input select {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  line-height: 50px;
}

.vmr-auth-input select {
  appearance: none;
  -webkit-appearance: none;
}

.vmr-auth-input input[readonly] {
  color: #52685d;
}

.vmr-auth-input input::placeholder {
  color: rgba(15, 23, 42, 0.35);
}

.vmr-auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  color: #52685d;
  font-size: 13px;
}

.vmr-auth-form-meta a,
.vmr-auth-links a,
.vmr-auth-text-link {
  color: #1b4d3e;
  font-weight: 600;
}

.vmr-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vmr-auth-btn-primary,
.vmr-auth-btn-secondary {
  min-height: 52px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vmr-auth-btn-primary {
  border: 0;
  color: #f7faf9;
  background: #1b4d3e;
}

.vmr-auth-btn-primary:hover,
.vmr-auth-btn-primary:focus {
  color: #f7faf9;
  background: #2f8f72;
}

.vmr-auth-btn-secondary {
  background: transparent;
  border: 1px solid rgba(27, 77, 62, 0.3);
  color: #1b4d3e;
}

.vmr-auth-btn-secondary:hover,
.vmr-auth-btn-secondary:focus {
  color: #123b30;
  background: rgba(27, 77, 62, 0.06);
}

.vmr-auth-links {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 77, 62, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #52685d;
  font-size: 13px;
}

.vmr-auth-panel .modal-content {
  border-radius: 20px;
  border: 1px solid rgba(27, 77, 62, 0.14);
}

.vmr-auth-panel .modal-header,
.vmr-auth-panel .modal-footer {
  border-color: rgba(27, 77, 62, 0.1);
}

.vmr-auth-panel .modal-title {
  color: #0f172a;
  font-family: 'Playfair Display', serif;
}

.vmr-auth-note {
  margin-top: 18px;
  color: #52685d;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .vmr-auth-shell {
    grid-template-columns: 1fr;
    max-width: 820px;
  }

  .vmr-auth-shell.vmr-auth-shell-reverse .vmr-auth-hero,
  .vmr-auth-shell.vmr-auth-shell-reverse .vmr-auth-panel {
    order: initial;
  }

  .vmr-auth-hero,
  .vmr-auth-panel {
    padding: 36px 28px;
  }

  .vmr-auth-copy h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .vmr-auth-stage {
    padding: 108px 12px 20px;
  }

  .vmr-auth-shell {
    border-radius: 22px;
  }

  .vmr-auth-hero,
  .vmr-auth-panel {
    padding: 26px 18px;
  }

  .vmr-auth-brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .vmr-auth-brand-mark img {
    width: 44px;
    height: 44px;
  }

  .vmr-auth-brand-copy h1 {
    font-size: 22px;
  }

  /* Mobile requirement: keep only logo + company name on hero side */
  .vmr-auth-badge,
  .vmr-auth-copy,
  .vmr-auth-points,
  .vmr-auth-brand-copy small {
    display: none;
  }

  .vmr-auth-hero::after {
    display: none;
  }

  .vmr-auth-hero {
    padding: 18px 20px;
  }

  .vmr-auth-brand {
    margin-bottom: 0;
  }

  .vmr-auth-copy h2,
  .vmr-auth-title {
    font-size: 26px;
  }

  .vmr-auth-grid,
  .vmr-auth-actions {
    grid-template-columns: 1fr;
  }
}

/* Agent agreement: fixed header and actions with a scrollable document. */
.vmr-terms-modal .modal-dialog { max-width: 820px; padding: 16px 0; }
.vmr-terms-modal .modal-content {
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  border: 1px solid #dce9e2;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 90px rgba(9, 36, 28, .25);
}
.vmr-terms-modal .modal-header {
  flex-shrink: 0;
  padding: 26px 30px;
  border-bottom: 1px solid #e2ebe6;
  background: linear-gradient(120deg, #edf6f1, #fafcfb);
  align-items: flex-start;
  gap: 16px;
}
.vmr-terms-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vmr-terms-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  height: 52px;
  border: 1px solid #d6e6dc;
  border-radius: 16px;
  background: #fff;
  color: #1b4d3e;
}
.vmr-terms-eyebrow { margin: 0 0 6px; color: #488069; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.vmr-terms-modal .modal-title { margin: 0; color: #193d2f; font-family: 'Playfair Display', serif; font-size: 27px; line-height: 1.25; }
.vmr-terms-intro { margin: 7px 0 0; color: #61756b; font-size: 12px; line-height: 1.6; }
.vmr-terms-modal .vmr-terms-close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid #dce7e0;
  border-radius: 50%;
  background: #fff;
  color: #52685d;
  opacity: 1;
  font-size: 23px;
  line-height: 30px;
  text-shadow: none;
  cursor: pointer;
}
.vmr-terms-modal .modal-body {
  min-height: 0;
  padding: 28px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a8c4b5 #f5f8f6;
}
.vmr-terms-document { color: #52645b; font-size: 14px; line-height: 1.85; }
.vmr-terms-document h2 { color: #1b4d3e; font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0 0 4px; }
.vmr-terms-document h3 { color: #234c3a; font-size: 16px; font-weight: 600; line-height: 1.5; margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid #e9eee9; }
.vmr-terms-document p { margin: 0 0 14px; }
.vmr-terms-document li { margin-bottom: 8px; padding-left: 4px; }
.vmr-terms-document li::marker { color: #488069; }
.vmr-terms-document ul { padding-left: 22px; }
.vmr-terms-subtitle { color: #7b8b80; font-size: 12px; }
.vmr-terms-table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 12px; }
.vmr-terms-document table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vmr-terms-document caption { caption-side: top; color: #61756b; font-size: 12px; padding: 0 0 10px; }
.vmr-terms-document th, .vmr-terms-document td { padding: 12px 14px; border: 1px solid #e2eae4; text-align: left; vertical-align: top; }
.vmr-terms-document thead th { background: #edf5ef; color: #234c3a; }
.vmr-terms-document tbody th { width: 32%; font-weight: 600; }
.vmr-terms-modal .modal-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 22px 30px;
  border-top: 1px solid #e2ebe6;
  background: #fafcfb;
}
.vmr-terms-modal .modal-footer > * { margin: 0; }
.vmr-terms-modal .modal-footer .checkbox { width: 100%; display: flex; align-items: flex-start; gap: 12px; }
.vmr-terms-modal .modal-footer .checkbox input[type="checkbox"] {
  position: static;
  opacity: 1;
  appearance: auto;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #1b4d3e;
  cursor: pointer;
}
.vmr-terms-modal .modal-footer .checkbox label { white-space: normal; color: #52645b; font-size: 12px; line-height: 1.7; height: auto; padding-left: 0; margin: 0; cursor: pointer; }
.vmr-terms-modal .modal-footer .checkbox label::before,
.vmr-terms-modal .modal-footer .checkbox label::after { content: none; display: none; }
.vmr-terms-scroll-note {
  padding: 10px 14px;
  border: 1px solid #e6dfc5;
  border-radius: 10px;
  background: #faf7ec;
  color: #746139;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.vmr-terms-scroll-note.is-complete { border-color: #d6e6dc; background: #edf6f1; color: #1b4d3e; }
.vmr-terms-actions { display: flex; justify-content: flex-end; gap: 10px; }
.vmr-terms-primary, .vmr-terms-secondary { border-radius: 12px; padding: 12px 22px; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background .15s, border-color .15s; }
.vmr-terms-primary { display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid #1b4d3e; background: #1b4d3e; color: #fff; }
.vmr-terms-primary:hover:not(:disabled) { background: #123b30; }
.vmr-terms-primary:disabled { background: #e0e9e3; border-color: #e0e9e3; color: #7c8e82; cursor: not-allowed; }
.vmr-terms-secondary { border: 1px solid #dce7e0; background: #fff; color: #456254; }
.vmr-terms-secondary:hover, .vmr-terms-modal .vmr-terms-close:hover { background: #edf6f1; }
.vmr-terms-modal button:focus-visible,
.vmr-terms-modal input:focus-visible { outline: 3px solid #75b698; outline-offset: 3px; }
@media (max-width: 575px) {
  .vmr-terms-modal .modal-dialog { margin: 12px; padding: 0; }
  .vmr-terms-modal .modal-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .vmr-terms-modal .modal-header { padding: 20px; gap: 10px; }
  .vmr-terms-heading { gap: 10px; }
  .vmr-terms-icon { flex-basis: 40px; height: 44px; border-radius: 12px; }
  .vmr-terms-modal .modal-title { font-size: 21px; }
  .vmr-terms-modal .modal-body { padding: 20px; }
  .vmr-terms-modal .modal-footer { padding: 18px 20px; gap: 14px; }
  .vmr-terms-actions > button { flex: 1; padding: 12px; }
  .vmr-terms-primary { gap: 10px; }
}

/* Registration reminders share the public site's green palette. */
.vmr-notification-modal .modal-dialog { max-width: 480px; }
.vmr-notification-modal .modal-content {
  border: 1px solid #e4eeea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(9, 36, 28, .22);
  overflow: hidden;
}
.vmr-notification-modal .modal-header {
  padding: 30px 30px 0;
  border: 0;
  align-items: flex-start;
}
.vmr-notification-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #d9e9e2;
  border-radius: 18px;
  background: #edf6f1;
  color: #237052;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vmr-notification-modal .vmr-notification-close {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f7f5;
  color: #61756b;
  opacity: 1;
  font-size: 23px;
  font-weight: 400;
  line-height: 32px;
  text-shadow: none;
}
.vmr-notification-modal .modal-body { padding: 22px 30px 0; }
.vmr-notification-eyebrow {
  color: #488069;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin: 0 0 10px;
}
.vmr-notification-modal .modal-title {
  color: #193d2f;
  font-family: 'Inter', sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.6px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.vmr-notification-modal #msg {
  color: #617168;
  font-size: 14px;
  line-height: 1.75;
  max-height: 35vh;
  overflow-y: auto;
}
.vmr-notification-modal .modal-footer {
  padding: 25px 30px 28px;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vmr-notification-modal .modal-footer button { margin: 0; }
.vmr-notification-primary, .vmr-notification-secondary {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.5;
}
.vmr-notification-primary {
  border: 1px solid #1b4d3e;
  background: #1b4d3e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vmr-notification-primary:hover { background: #123b30; }
.vmr-notification-secondary { border: 1px solid #e1e9e5; background: #fff; color: #456254; }
.vmr-notification-secondary:hover, .vmr-notification-modal .vmr-notification-close:hover { background: #edf6f1; }
.vmr-notification-modal button:focus-visible { outline: 3px solid #75b698; outline-offset: 3px; }
.vmr-notification-modal [hidden] { display: none !important; }
@media (max-width: 575px) {
  .vmr-notification-modal .modal-dialog { margin: 16px; }
  .vmr-notification-modal .modal-header { padding: 24px 24px 0; }
  .vmr-notification-modal .modal-body { padding: 20px 24px 0; }
  .vmr-notification-modal .modal-footer { padding: 22px 24px 24px; }
  .vmr-notification-modal .modal-title { font-size: 21px; }
}
