html:has(body.is-login-drawer-open),
body.is-login-drawer-open {
  overflow: hidden;
}

.login-access-drawer {
  position: fixed;
  z-index: 260;
  inset: 0;
  pointer-events: none;
  font-family: var(--sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.login-access-drawer [hidden] {
  display: none !important;
}

body.is-login-drawer-open .login-access-drawer {
  pointer-events: auto;
}

.login-access-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(0, 19, 38, 0.58);
  opacity: 0;
  cursor: default;
  transition: opacity 220ms ease;
}

body.is-login-drawer-open .login-access-drawer__backdrop {
  opacity: 1;
}

.login-access-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(460px, 100vw);
  height: 100dvh;
  overflow: hidden;
  border-right: 1px solid rgba(199, 101, 64, 0.3);
  box-shadow: 28px 0 80px rgba(0, 8, 19, 0.42);
  background: #faf6f3;
  color: #122536;
  transform: translateX(-102%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-login-drawer-open .login-access-drawer__panel {
  transform: translateX(0);
}

.login-access-drawer__header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px 0 40px;
  border-bottom: 1px solid rgba(199, 101, 64, 0.82);
  background: #001326;
}

.login-access-drawer__brand {
  display: grid;
  gap: 2px;
  color: #fffdf9;
  text-decoration: none;
}

.login-access-drawer__brand img {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.login-access-drawer__brand small {
  color: rgba(255, 253, 249, 0.68);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.login-access-drawer__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.login-access-drawer__close:hover {
  border-color: rgba(213, 122, 87, 0.72);
  background: rgba(199, 101, 64, 0.12);
}

.login-access-drawer__close img {
  filter: brightness(0) invert(1);
}

.login-access-drawer__body {
  height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 40px 18px;
}

.login-access-drawer__eyebrow {
  margin-bottom: 8px;
  color: #a94e2c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-access-drawer__copy {
  margin-bottom: 20px;
}

.login-access-drawer__copy h2 {
  max-width: none;
  margin: 0 0 6px;
  color: #021a30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.login-access-drawer__copy p {
  margin: 0;
  color: #66717a;
  font-size: 14px;
  line-height: 1.5;
}

.login-google,
.login-form,
.login-recovery {
  display: grid;
  gap: 10px;
}

.login-google[hidden],
.login-form[hidden],
.login-recovery[hidden],
.login-access-drawer__social[hidden] {
  display: none !important;
}

.login-google-render {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-google-render > div,
.login-google-render iframe {
  width: 100% !important;
  max-width: 350px !important;
}

.login-google-button,
.login-submit {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.login-google-button {
  border: 1px solid #c76540;
  background: #fffdf9;
  color: #122536;
}

.login-google-button:hover {
  border-color: #a94e2c;
}

.login-submit {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #a94e2c, #c76540);
  box-shadow: 0 12px 28px rgba(157, 66, 34, 0.24);
  color: #fffdf9;
}

.login-submit:hover {
  background: #a94e2c;
}

.login-submit:disabled,
.login-google-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.login-helper {
  min-height: 0;
  margin: -8px 0 0;
  color: #66717a;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.login-helper:empty {
  display: none;
}

.login-helper[data-tone="neutral"] {
  display: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 14px;
  color: #7a817f;
  font-size: 12px;
  font-weight: 750;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #ded4cd;
}

.login-form label,
.login-recovery label {
  display: grid;
  gap: 7px;
  color: #122536;
  font-size: 12px;
  font-weight: 800;
}

.login-form input,
.login-form select,
.login-recovery input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cfc3bb;
  border-radius: 5px;
  outline: none;
  background: #fffdf9;
  color: #122536;
  font: 500 14px/1.3 var(--sans, Inter, sans-serif);
}

.login-form input:focus,
.login-form select:focus,
.login-recovery input:focus {
  border-color: #a94e2c;
  box-shadow: 0 0 0 3px rgba(169, 78, 44, 0.12);
}

.login-form small {
  color: #66717a;
  font-size: 11px;
  font-weight: 500;
}

.login-password-field {
  position: relative;
  display: block;
}

.login-password-field input {
  padding-right: 48px;
}

.login-password-field button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.login-password-hide,
.login-password-field button.is-visible .login-password-show {
  display: none;
}

.login-password-field button.is-visible .login-password-hide {
  display: block;
}

.login-form-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #66717a;
  font-size: 11px;
}

.login-form-tools button,
.login-access-drawer__back {
  border: 0;
  padding: 0;
  background: transparent;
  color: #a94e2c;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.login-access-drawer__back {
  justify-self: start;
  margin-bottom: -4px;
  font-size: 12px;
}

.login-access-drawer__home-link {
  justify-self: center;
  margin-top: 2px;
  color: #a94e2c;
  font-size: 13px;
  font-weight: 750;
}

.login-recovery-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #ded4cd;
  border-radius: 5px;
  background: #f4efeb;
}

.login-recovery-copy strong {
  color: #021a30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.login-recovery-copy p,
.login-recovery-result p {
  margin: 0;
  color: #66717a;
  font-size: 13px;
  line-height: 1.45;
}

.login-recovery-result {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(40, 118, 108, 0.34);
  border-radius: 5px;
  background: rgba(40, 118, 108, 0.08);
  color: #0a2d46;
}

.login-recovery-result a {
  color: #a94e2c;
  font-weight: 800;
}

.login-meta {
  margin-top: 16px;
}

.login-status {
  display: inline-block;
  margin-bottom: 6px;
  color: #0a2d46;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-feedback {
  margin: 0;
  color: #66717a;
  font-size: 12px;
  line-height: 1.4;
}

.login-status[data-tone="error"],
.login-feedback[data-tone="error"],
.login-helper[data-tone="error"] {
  color: #a13c2a;
}

.login-status[data-tone="success"],
.login-feedback[data-tone="success"],
.login-helper[data-tone="success"] {
  color: #28766c;
}

.login-access-drawer__footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #ded4cd;
  color: #737b7e;
  font-size: 11px;
}

.login-access-drawer__footer img {
  opacity: 0.62;
}

.login-access-drawer button:focus-visible,
.login-access-drawer a:focus-visible,
.login-access-drawer input:focus-visible,
.login-access-drawer select:focus-visible {
  outline: 3px solid rgba(199, 101, 64, 0.28);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .login-access-drawer__panel {
    width: 100vw;
    border-right: 0;
  }

  .login-access-drawer__header {
    height: 64px;
    padding-inline: 24px;
  }

  .login-access-drawer__body {
    height: calc(100dvh - 64px);
    padding: 20px 24px 16px;
  }

  .login-access-drawer__copy h2 {
    font-size: 32px;
  }
}

@media (max-height: 680px) {
  .login-access-drawer__header {
    height: 60px;
  }

  .login-access-drawer__body {
    height: calc(100dvh - 60px);
    padding-block: 14px 12px;
  }

  .login-access-drawer__copy {
    margin-bottom: 12px;
  }

  .login-access-drawer__copy h2 {
    font-size: 30px;
  }

  .login-divider {
    margin-block: 10px;
  }

  .login-google-button,
  .login-submit,
  .login-form input,
  .login-form select,
  .login-recovery input {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-access-drawer__backdrop,
  .login-access-drawer__panel {
    transition-duration: 1ms;
  }
}
