@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* Scoped access UI; existing application styles remain independent. */
.access-locked body > :not(.access-gate):not(.access-dialog):not(script) { visibility:hidden }
.access-locked { overflow:hidden }

/* ── RETINA Silver Red Access Screen ── */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 10020;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #09090B;
  background-image: radial-gradient(circle at 18% 18%, rgba(229, 28, 53, 0.05) 0%, rgba(24, 24, 28, 0.45) 35%, #09090B 72%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px) 20px;
  box-sizing: border-box;
  color: #F2F2F4;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

/* Monumental decorative R watermark */
.access-watermark {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(540px, 48vw, 820px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.18;
  filter: contrast(1.2);
}
.access-watermark-r {
  width: 100%;
  height: auto;
  display: block;
}

/* Two-column layout container */
.access-container {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin: auto 0;
  padding: 20px 0;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

/* Left Column: Brand & Editorial */
.access-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.access-hero-brand {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.access-hero-logo {
  height: clamp(40px, 4.4vw, 56px);
  width: auto;
  max-width: 100%;
  display: block;
}
.access-hero-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', 'Franklin Gothic Heavy', sans-serif-condensed, sans-serif;
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}
.access-hero-line {
  display: block;
}
.access-hero-method-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
}
.access-hero-underline {
  width: 100%;
  height: 5px;
  background: #E51C35;
  margin-top: 14px;
  margin-bottom: 22px;
  border-radius: 1px;
}
.access-hero-subtext {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(13.5px, 1.3vw, 15px);
  color: #B8BBC3;
  letter-spacing: 0.035em;
  margin: 0;
  line-height: 1.5;
}

/* Right Column: Access Panel */
.access-entry {
  background: #171719;
  border: 1px solid #2A2A2D;
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 42px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.access-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.access-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8E929E;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  display: block;
}
.access-tag-line {
  width: 32px;
  height: 2px;
  background: #E51C35;
  border-radius: 1px;
  display: block;
}

.access-entry h1 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #F2F2F4;
  margin: 0 0 18px 0;
}

/* State message pill/box */
.access-state-box {
  background: #1C1D21;
  border: 1px solid #28292E;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  box-sizing: border-box;
}
.access-state-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #8E929E;
}
.access-state-text {
  margin: 0;
  color: #B8BBC3;
  font-size: 13.5px;
  line-height: 1.45;
}

/* Actions inside access entry */
.access-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  width: 100%;
  min-width: 0;
}

.access-entry .access-btn-primary {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 50px !important;
  background: #E51C35 !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  border: 1px solid #FF3850 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 16px !important;
  gap: 10px !important;
  transition: background 0.15s ease, filter 0.15s ease, transform 0.1s ease !important;
}
.access-entry .access-btn-primary:hover {
  background: #F02840 !important;
  filter: brightness(1.06) !important;
}
.access-entry .access-btn-primary:active {
  transform: scale(0.99) !important;
}
.access-entry .access-btn-primary:focus-visible {
  outline: 3px solid #FFFFFF !important;
  outline-offset: 2px !important;
}
.access-entry .access-btn-primary span {
  white-space: nowrap !important;
}
.access-entry .access-btn-arrow {
  flex-shrink: 0 !important;
  display: inline-block !important;
  transition: transform 0.15s ease !important;
}
.access-entry .access-btn-primary:hover .access-btn-arrow {
  transform: translateX(4px) !important;
}

.access-entry .access-btn-secondary {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 50px !important;
  background: transparent !important;
  border: 1px solid #383A42 !important;
  color: #F2F2F4 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 16px !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease !important;
}
.access-entry .access-btn-secondary:hover {
  background: #202126 !important;
  border-color: #525560 !important;
}
.access-entry .access-btn-secondary:active {
  transform: scale(0.99) !important;
}
.access-entry .access-btn-secondary:focus-visible {
  outline: 3px solid #E51C35 !important;
  outline-offset: 2px !important;
}
.access-entry .access-btn-secondary span {
  white-space: nowrap !important;
}

.access-aux {
  font-size: 12px;
  color: #8E929E;
  text-align: center;
  margin: 18px 0;
  letter-spacing: 0.02em;
}

.access-divider {
  border: 0;
  border-top: 1px solid #26272C;
  margin: 0 0 18px 0;
  width: 100%;
}

.access-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}
.access-text-link {
  background: none;
  border: none;
  padding: 4px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: #B8BBC3;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #4A4D57;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  font-family: inherit;
}
.access-text-link:hover {
  color: #F2F2F4;
  text-decoration-color: #B8BBC3;
}
.access-text-link:focus-visible {
  outline: 2px solid #E51C35;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer Tagline */
.access-footer {
  margin-top: 32px;
  padding: 12px 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #8E929E;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  pointer-events: none;
}

/* ── Generic & Dialog Buttons (Preserved for Modals / Admin) ── */
.access-button {
  display: inline-block;
  background: #E51C35;
  color: #fff;
  border: 1px solid #ff3850;
  border-radius: 10px;
  padding: 11px 17px;
  cursor: pointer;
  text-decoration: none;
  font: 600 14px/1.4 system-ui, sans-serif;
  margin: 4px 6px 4px 0;
}
.access-button.secondary {
  background: #161618;
  border-color: #2A2A2D;
  color: #F2F2F4;
}
.access-button:hover { filter: brightness(1.13); }
.access-button:disabled { opacity: 0.5; cursor: wait; }
.access-button:focus-visible,
.access-dialog input:focus-visible,
.access-dialog select:focus-visible,
.access-dialog summary:focus-visible {
  outline: 3px solid #E51C35;
  outline-offset: 3px;
}
.access-muted { font-size: 12px; color: #8E929E !important; margin: 10px 0; }

/* ── Access Dialog / Modal & Account Toolbar ── */
.access-account {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 55;
  box-shadow: 0 5px 25px #0007;
  background: #171719 !important;
  border: 1px solid #2A2A2D !important;
  color: #B8BBC3 !important;
  border-radius: 9999px;
  padding: 8px 16px;
}
.access-dialog {
  background: #171719;
  color: #F2F2F4;
  border: 1px solid #2A2A2D;
  border-radius: 20px;
  width: min(850px, 94vw);
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  font: 15px/1.6 system-ui, sans-serif;
  color-scheme: dark;
}
.access-dialog::backdrop {
  background: #000000cc;
  backdrop-filter: blur(5px);
}
.access-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #2A2A2D;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.access-heading h2 { font-size: 26px; font-weight: 700; margin: 0; }
.access-dialog h3 { font-size: 18px; font-weight: 650; margin: 10px 0; }
.access-dialog p { margin: 16px 0; color: #c8ccdc; }
.access-row {
  padding: 18px;
  border: 1px solid #2A2A2D;
  background: #161618;
  border-radius: 12px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  overflow-wrap: anywhere;
}
.access-row details { width: 100%; }
.access-row summary { cursor: pointer; font-weight: 600; }
.access-row pre {
  white-space: pre-wrap;
  font: 12px/1.5 ui-monospace, monospace;
  width: 100%;
  overflow-wrap: anywhere;
}
.access-row small { color: #B8BBC3; }
.access-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 0;
  font-size: 14px;
  color: #c8ccdc;
}
.access-field input, .access-field select {
  padding: 11px 13px;
  color: white;
  background: #09090B;
  border: 1px solid #2A2A2D;
  border-radius: 9px;
  width: 100%;
  min-width: 200px;
  font: 16px system-ui, sans-serif;
}
.access-error {
  padding: 13px;
  background: #3e1d2c;
  border: 1px solid #924a69;
  border-radius: 8px;
  color: #ffd8df !important;
}

/* ── Responsive Adaptations ── */
@media (max-width: 880px) {
  .access-container {
    grid-template-columns: 1fr;
    gap: 32px;
    width: min(480px, 100%);
    padding: 12px 0;
  }
  .access-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .access-hero-brand {
    margin-bottom: 20px;
  }
  .access-hero-headline {
    font-size: clamp(38px, 9vw, 54px);
  }
  .access-hero-underline {
    margin: 12px 0 16px 0;
  }
  .access-hero-subtext {
    font-size: 13.5px;
  }
  .access-watermark {
    width: 320px;
    left: -70px;
    top: 20%;
    opacity: 0.06;
  }
}
@media (max-width: 480px) {
  .access-gate {
    padding: 20px 16px 16px;
  }
  .access-entry {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .access-entry .access-btn-primary {
    height: auto !important;
    min-height: 48px !important;
    padding: 10px 14px !important;
  }
  .access-entry .access-btn-primary span {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }
  .access-footer-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .access-footer {
    letter-spacing: 0.22em;
    font-size: 11px;
    color: #8E929E;
  }
  .access-dialog { padding: 18px; }
  .access-heading h2 { font-size: 22px; }
  .access-account { bottom: 8px; right: 8px; font-size: 12px; }
}
@media (max-width: 360px) {
  .access-gate {
    padding: 16px 16px 14px;
  }
  .access-entry {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .access-entry .access-btn-primary {
    font-size: 13.5px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    height: auto !important;
    min-height: 48px !important;
  }
  .access-entry .access-btn-primary span {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }
  .access-entry .access-btn-secondary {
    font-size: 13.5px !important;
    padding: 10px 12px !important;
    height: auto !important;
    min-height: 46px !important;
  }
  .access-entry .access-btn-secondary span {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }
  .access-footer {
    letter-spacing: 0.18em;
    font-size: 10.5px;
    color: #8E929E;
  }
}
