.landing-access-login,
.footer-login {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.landing-access-login {
  flex: 0 0 auto;
  padding: 10px 0;
  font-size: 14px;
}

.footer-login {
  padding: 0;
  font-size: inherit;
}

.landing-access-login:hover,
.footer-login:hover {
  color: var(--blue, #0757d9);
}

.landing-access-login:focus-visible,
.footer-login:focus-visible,
.tenant-access-close:focus-visible,
.tenant-access-field input:focus-visible,
.tenant-access-submit:focus-visible,
.tenant-access-new a:focus-visible {
  outline: 3px solid rgba(255, 122, 0, 0.5);
  outline-offset: 3px;
}

body.tenant-access-open {
  overflow: hidden;
}

.tenant-access-modal[hidden] {
  display: none;
}

.tenant-access-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.tenant-access-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tenant-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 43, 0.72);
  backdrop-filter: blur(7px);
}

.tenant-access-dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #d8e6fa;
  border-radius: 24px;
  background: linear-gradient(180deg, #f2f7ff 0, #fff 150px);
  padding: 36px 38px 30px;
  box-shadow: 0 35px 90px rgba(0, 24, 66, 0.36);
  color: var(--ink, #091b3d);
  font-family: "Geist", Arial, sans-serif;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.18s ease;
}

.tenant-access-modal.is-open .tenant-access-dialog {
  transform: none;
}

.tenant-access-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #d8e3f1;
  border-radius: 50%;
  background: #fff;
  color: #52647f;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.tenant-access-close:hover {
  border-color: #adc9ed;
  color: var(--blue, #0757d9);
}

.tenant-access-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue, #0757d9), #1384ff);
  box-shadow: 0 12px 28px rgba(7, 87, 217, 0.25);
}

.tenant-access-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tenant-access-eyebrow {
  margin: 23px 0 8px;
  color: var(--orange, #ff7a00);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tenant-access-dialog h2 {
  margin: 0;
  color: var(--navy, #071a3d);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tenant-access-dialog > p:not(.tenant-access-eyebrow):not(.tenant-access-new) {
  margin: 13px 0 24px;
  color: var(--muted, #61708c);
  font-size: 14px;
  line-height: 1.55;
}

.tenant-access-dialog form {
  display: grid;
}

.tenant-access-dialog label {
  margin-bottom: 8px;
  color: #243754;
  font-size: 13px;
  font-weight: 800;
}

.tenant-access-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  border: 1px solid #cbd8e8;
  border-radius: 12px;
  background: #fff;
  padding: 0 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.tenant-access-field:focus-within {
  border-color: var(--electric, #146ef5);
  box-shadow: 0 0 0 4px rgba(20, 110, 245, 0.13);
}

.tenant-access-field:has(input[aria-invalid="true"]) {
  border-color: #d84242;
  box-shadow: 0 0 0 4px rgba(216, 66, 66, 0.1);
}

.tenant-access-field svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #6680a6;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tenant-access-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink, #091b3d);
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.tenant-access-field input::placeholder {
  color: #a4b0c2;
  font-weight: 500;
}

.tenant-access-dialog form > small {
  margin-top: 7px;
  color: #71809a;
  font-size: 11px;
}

.tenant-access-status {
  min-height: 22px;
  margin: 10px 0 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.tenant-access-status.is-error {
  color: #b4232f;
}

.tenant-access-status.is-loading {
  color: #536b8f;
}

.tenant-access-status.is-success {
  color: #087a4d;
}

.tenant-access-submit {
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue, #0757d9), #087cff);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  box-shadow: 0 13px 29px rgba(7, 87, 217, 0.24);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.tenant-access-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(7, 87, 217, 0.31);
}

.tenant-access-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.tenant-access-submit b {
  font-size: 20px;
}

.tenant-access-new {
  margin: 21px 0 0;
  text-align: center;
  color: #687892;
  font-size: 12px;
}

.tenant-access-new a {
  color: var(--blue, #0757d9);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .site-header .landing-access-login {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .header > .cta,
  .site-header > .cta {
    display: none;
  }

  .tenant-access-modal {
    align-items: end;
    padding: 12px;
  }

  .tenant-access-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
    padding: 30px 22px 24px;
  }

  .tenant-access-dialog h2 {
    font-size: 27px;
  }

  .tenant-access-close {
    right: 14px;
    top: 14px;
  }

  .tenant-access-field input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tenant-access-modal,
  .tenant-access-dialog,
  .tenant-access-submit {
    transition: none;
  }
}
