/* ============================================================
   Altariss — Member Login Drawer
   Mirrors .nav-drawer geometry, clip-path reveal, easing and
   dark palette. Image left, form right.
   Self-contained — does not touch style.css, pages.css or
   mobile.css.
   ============================================================ */

.alt-login-drawer {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(96% - 88px);
  max-width: 1112px;
  min-height: 540px;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  clip-path: inset(0 0 100% 0 round 8px);
  transition: clip-path 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.alt-login-drawer.hdr-hero-offset { top: 52px; }

.alt-login-drawer.open {
  clip-path: inset(0 0 0% 0 round 8px);
  pointer-events: auto;
}

/* ---------- close ---------- */

.alt-login-close {
  position: absolute;
  top: 98px;
  right: 24px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: rgba(255,255,255,0.88);
  opacity: .5;
  transition: opacity .25s ease, background .25s ease;
}

.alt-login-close:hover { opacity: 1; background: rgba(255,255,255,0.07); }
.alt-login-close svg { width: 14px; height: 14px; }

/* ---------- left: image ---------- */

/* Left column: empty transparent spacer. It holds the drawer's width
   and the position of the panel on the right. pointer-events: none lets
   clicks fall through to the page behind, which also closes the drawer. */
.alt-login-media {
  position: relative;
  pointer-events: none;
}

.alt-login-media img,
.alt-login-media::after { display: none; }

/* ---------- right: form ---------- */

.alt-login-body {
  padding: 92px 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1a1815;
}

.alt-login-title {
  margin: 0 0 18px;
  font-family: var(--serif, 'ivyora-display', Georgia, serif);
  font-weight: 200;
  font-size: 30px;
  line-height: 1.15;
  color: #ffffff;
}

.alt-login-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #51b4d5;
  margin: 0 0 14px;
}

.alt-login-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0 0 26px;
  max-width: 400px;
}

.alt-login-form { max-width: 400px; }

.alt-login-field { margin-bottom: 22px; }

.alt-login-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 7px;
}

.alt-login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #ffffff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  transition: border-color .25s ease;
}

.alt-login-field input:focus {
  outline: none;
  border-bottom-color: #51b4d5;
}

.alt-login-field input::placeholder {
  color: rgba(255,255,255,0.32);
  font-size: 14px;
}

.alt-login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1815;
  background: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background .28s ease, color .28s ease;
}

.alt-login-submit:hover { background: #51b4d5; color: #ffffff; }
.alt-login-submit[disabled] { opacity: .55; cursor: default; }
.alt-login-submit[disabled]:hover { background: #ffffff; color: #1a1815; }

/* ---------- error ---------- */

.alt-login-error {
  display: none;
  max-width: 420px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

.alt-login-error-msg { margin: 0 0 24px; }

.alt-login-error-cta {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.alt-login-error p a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #51b4d5;
  text-underline-offset: 3px;
}

.alt-login-error p a:hover { color: #51b4d5; }

.alt-login-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1815;
  background: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  transition: background .28s ease, color .28s ease, gap .28s ease;
}

.alt-login-apply:hover {
  background: #51b4d5;
  color: #ffffff;
  gap: 14px;
  text-decoration: none;
}

.alt-login-apply-icon {
  display: inline-flex;
  align-items: center;
}

/* Error state: the form and supporting copy are replaced by the
   message. Drawer height is held by min-height on .alt-login-drawer,
   so nothing resizes. */

.alt-login-drawer.has-error .alt-login-sub,
.alt-login-drawer.has-error .alt-login-form,
.alt-login-drawer.has-error .alt-login-foot { display: none; }

.alt-login-drawer.has-error .alt-login-error { display: block; }

/* ---------- footer link ---------- */

.alt-login-foot {
  max-width: 400px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
}

.alt-login-foot a {
  color: rgba(255,255,255,0.88);
  text-decoration: underline;
  text-decoration-color: #51b4d5;
  text-underline-offset: 3px;
}

.alt-login-foot a:hover { color: #51b4d5; }

/* ---------- mobile: full screen, matches .nav-drawer mobile ---------- */

@media (max-width: 768px) {
  .alt-login-drawer {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    clip-path: none !important;
    transform: none !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
    overflow-y: auto;
    background: #1a1815;
  }

  .alt-login-drawer.open {
    clip-path: none !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .alt-login-media { display: none; }

  .alt-login-body {
    min-height: 100dvh;
    padding: 100px 32px 60px;
  }

  .alt-login-title { font-size: 30px; }
  .alt-login-close { top: 104px; right: 26px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .alt-login-drawer { transition: none; }
}
