.access-modal[hidden] { display: none; }
.access-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.access-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(7px);
}
.access-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(15,23,42,.32);
}
.access-modal__accent {
  height: 7px;
  background: linear-gradient(90deg, #6345ed, #367ee9, #08a6c7);
}
.access-modal__content { padding: 34px; }
.access-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.access-modal__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px #d1fae5;
}
.access-modal h2 {
  margin: 0;
  color: #18213a;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.access-modal__intro {
  margin: 14px 0 24px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}
.access-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  font-size: 22px;
}
.access-modal__close:hover { background: #e2e8f0; color: #0f172a; }
.access-form { display: grid; gap: 16px; }
.access-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.access-field { display: grid; gap: 7px; }
.access-field label { color: #263149; font-size: 13px; font-weight: 700; }
.access-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #d8deea;
  border-radius: 11px;
  padding: 0 14px;
  background: #fff;
  color: #18213a;
  font: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.access-field input:focus { border-color: #635bff; box-shadow: 0 0 0 4px rgba(99,91,255,.12); }
.access-field--trap { position: absolute; left: -10000px; }
.access-submit {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  margin-top: 2px;
  padding: 0 22px;
  background: linear-gradient(135deg, #5f50ee, #7137e8);
  box-shadow: 0 12px 28px rgba(99, 70, 235, .28);
  color: #fff;
  cursor: pointer;
  font: 800 15px/1 Inter, sans-serif;
}
.access-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 32px rgba(99,70,235,.34); }
.access-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.access-switch { margin: 2px 0 0; text-align: center; color: #64748b; font-size: 13px; }
.access-switch button { border: 0; padding: 5px; background: none; color: #5145cd; cursor: pointer; font: inherit; font-weight: 800; }
.access-message { display: none; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.access-message.is-visible { display: block; }
.access-message.is-error { background: #fff1f2; color: #9f1239; }
.access-message.is-success { background: #ecfdf5; color: #047857; }
.access-code { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.access-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #d1fae5;
  color: #059669;
  font-size: 28px;
  font-weight: 900;
}
body.access-modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .access-modal { padding: 12px; }
  .access-modal__content { padding: 28px 22px; }
  .access-form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .access-submit, .access-field input { transition: none; }
}
