:root {
  --vms-access-navy: #0f2747;
  --vms-access-blue: #24356f;
  --vms-access-gold: #c9974c;
  --vms-access-orange: #d4832c;
  --vms-access-orange-dark: #b96f22;
  --vms-access-border: #dbe3ef;
  --vms-access-muted: #667085;
  --vms-access-canvas: #fbfaf7;
}

html:has(body.vms-account-access-page),
body.vms-account-access-page {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--vms-access-canvas) !important;
}

body.vms-account-access-page #wpadminbar {
  display: none !important;
}

html:has(body.vms-account-access-page) {
  margin-top: 0 !important;
}

#vms-account-access,
#vms-account-access * {
  box-sizing: border-box;
}

.vms-account-access__canvas {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 18px 16px 24px;
  background: linear-gradient(180deg, #ffffff 0, #fbfaf7 100%);
}

.vms-account-access__shell {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.vms-account-access__brand {
  margin: 0;
  color: var(--vms-access-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.vms-account-access__eyebrow {
  margin-top: 5px;
  color: var(--vms-access-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.vms-account-access__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 9px auto 8px;
  color: var(--vms-access-gold);
}

.vms-account-access__divider span {
  width: 42px;
  height: 1px;
  background: #e3d1b4;
}

.vms-account-access__divider b {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.vms-account-access__header h1 {
  margin: 0;
  color: var(--vms-access-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 34px);
  line-height: 1.12;
  font-weight: 700;
}

.vms-account-access__header > p {
  max-width: 540px;
  margin: 8px auto 0;
  color: #344054;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.vms-account-access__card {
  margin-top: 16px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--vms-access-border);
  border-top: 4px solid var(--vms-access-gold);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 39, 71, 0.055);
  text-align: left;
}

.vms-account-access__card .woocommerce-error,
.vms-account-access__card .woocommerce-message,
.vms-account-access__card .woocommerce-info {
  margin: 0 0 13px !important;
  padding: 11px 13px !important;
  border: 1px solid #dbe3ef !important;
  border-top: 0 !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  color: #344054 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.vms-access-form-intro p {
  margin: 0 0 13px;
  color: #344054;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.vms-access-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border: 1px solid #e7eaf3;
  border-radius: 9px;
  background: #fafbfd;
}

.vms-access-identity span {
  color: var(--vms-access-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.vms-access-identity strong {
  min-width: 0;
  color: var(--vms-access-blue);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-align: right;
}

.vms-account-access-form,
.vms-passwordless-consume-form {
  margin: 0;
}

.vms-access-field {
  margin: 0 0 12px;
}

.vms-access-field label,
.vms-access-request-form label {
  display: block;
  margin: 0 0 6px;
  color: #172b4d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.vms-access-password-wrap,
.vms-access-input-wrap {
  position: relative;
}

.vms-account-access-form input[type="password"],
.vms-account-access-form input[type="email"],
.vms-account-access-form input[type="text"],
.vms-access-request-form input[type="email"] {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 46px 10px 13px;
  border: 1px solid #cdd7e5;
  border-radius: 8px;
  background: #fff;
  color: #172b4d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: none;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.vms-access-input-wrap--email input,
.vms-access-request-form .vms-access-input-wrap--email input {
  padding-left: 48px !important;
  padding-right: 14px !important;
}

.vms-account-access-form input:focus,
.vms-access-request-form input:focus {
  border-color: var(--vms-access-gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 76, .13);
}

.vms-access-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: #8aa0bb;
  line-height: 1;
  pointer-events: none;
}

.vms-access-input-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.vms-access-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a8ca4;
  cursor: pointer;
}

.vms-access-password-toggle:hover,
.vms-access-password-toggle:focus {
  background: #f1f5f9;
  color: var(--vms-access-blue);
  outline: none;
}

.vms-access-password-guidance {
  margin: 0 0 13px;
}

.vms-access-password-guidance > p {
  margin: 0 0 6px;
  color: var(--vms-access-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.vms-access-strength-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.vms-access-strength-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #c7d2e0;
  transition: width .18s ease, background-color .18s ease;
}

.vms-access-strength-text {
  min-height: 17px;
  margin: 5px 0 0 !important;
}

.vms-access-primary-button,
.vms-access-request-button {
  display: block !important;
  width: 100% !important;
  min-height: 48px;
  margin: 2px 0 0 !important;
  padding: 12px 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--vms-access-orange) !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color .18s ease, transform .18s ease;
}

.vms-access-primary-button:hover,
.vms-access-primary-button:focus,
.vms-access-request-button:hover,
.vms-access-request-button:focus {
  background: var(--vms-access-orange-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  outline: none;
}

.vms-access-primary-button[disabled],
.vms-access-request-button[disabled] {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.vms-access-after-note,
.vms-account-access__support,
.vms-access-request-neutral-note {
  color: var(--vms-access-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.vms-access-after-note {
  margin: 12px 0 0;
}

.vms-access-request-neutral-note {
  margin: 9px 0 0;
}

.vms-account-access__support {
  margin: 12px 0 0;
}

.vms-account-access__support a,
.vms-access-secondary-link {
  color: var(--vms-access-blue);
  font-weight: 600;
  text-decoration: underline;
}

.vms-access-confirmation,
.vms-passwordless-confirm,
.vms-access-cross-session {
  padding: 0;
  text-align: center;
}

.vms-access-confirmation__icon,
.vms-access-cross-session__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 700;
}

.vms-access-confirmation__icon {
  background: #effaf3;
  color: #23834d;
}

.vms-access-cross-session__icon {
  border: 2px solid #d8a253;
  background: #fff8ec;
  color: #9a5d18;
  font-family: Georgia, "Times New Roman", serif;
}

.vms-access-confirmation h2,
.vms-passwordless-confirm h2,
.vms-access-cross-session h2 {
  margin: 0;
  color: var(--vms-access-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
}

.vms-access-confirmation p,
.vms-passwordless-confirm > p:not(.vms-access-after-note),
.vms-access-cross-session > p:not(.vms-access-after-note) {
  max-width: 500px;
  margin: 9px auto 15px;
  color: #475467;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.vms-access-fallback-message {
  margin: 0;
  color: #7a271a;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.vms-access-request-shortcode,
.vms-access-request-shortcode * {
  box-sizing: border-box;
}

.vms-access-request-form .vms-access-input-wrap {
  margin-bottom: 10px;
}

.vms-access-request-shortcode--logged-in .vms-access-request-button {
  max-width: 360px;
  margin: 0 auto !important;
}

.vms-access-secondary-action {
  display: inline-block;
  margin-top: 12px;
  color: var(--vms-access-blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: underline;
}

.vms-access-secondary-action:hover,
.vms-access-secondary-action:focus {
  color: var(--vms-access-navy);
}

.vms-limited-assurance-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f0d4a8;
  border-radius: 12px;
  background: #fff8ec;
  color: #744512;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.vms-limited-assurance-notice a {
  flex: 0 0 auto;
  color: #24356f;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-height: 760px) and (min-width: 700px) {
  .vms-account-access__canvas {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .vms-account-access__brand {
    font-size: 22px;
  }

  .vms-account-access__divider {
    margin-top: 7px;
    margin-bottom: 6px;
  }

  .vms-account-access__header h1 {
    font-size: 30px;
  }

  .vms-account-access__card {
    margin-top: 13px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (max-width: 600px) {
  .vms-account-access__canvas {
    padding: 16px 10px 24px;
  }

  .vms-account-access__brand {
    font-size: 23px;
  }

  .vms-account-access__header h1 {
    font-size: 29px;
  }

  .vms-account-access__header > p {
    font-size: 13px;
  }

  .vms-account-access__card {
    margin-top: 14px;
    padding: 19px 15px;
    border-radius: 14px;
  }

  .vms-access-identity {
    display: block;
  }

  .vms-access-identity strong {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .vms-limited-assurance-notice {
    display: block;
  }

  .vms-limited-assurance-notice a {
    display: inline-block;
    margin-top: 8px;
  }
}
