:root {
  color-scheme: light;
  --navy: #25234f;
  --ink: #242143;
  --brand: #403b82;
  --pink: #ed528f;
  --muted: #5e5b72;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
body.access-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 76px);
  background:
    radial-gradient(ellipse at 13% 18%, #deddf5 0, transparent 54%),
    radial-gradient(ellipse at 94% 86%, #f8dde9 0, transparent 48%),
    #f4f4fa;
  color: var(--ink);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  width: min(100%, 1216px);
  min-height: 668px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 28px 85px #28245024, 0 3px 12px #2824500b;
  animation: access-enter .8s var(--ease) both;
}

.access-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-width: 0;
  border-radius: 24px;
  background: var(--navy);
}
.access-photo, .access-hero::after, .access-glow { position: absolute; inset: 0; width: 100%; height: 100%; }
.access-photo {
  z-index: -3;
  object-fit: cover;
  object-position: 69% center;
  animation: access-photo 1.8s var(--ease) both;
}
.access-hero::after {
  content: "";
  z-index: -2;
  background:
    linear-gradient(180deg, #241c4603 12%, #2721524a 40%, #20183aee 82%, #21183ffb 100%),
    linear-gradient(95deg, #27204b66, transparent 74%);
}
.access-glow {
  z-index: -1;
  inset: auto -26% -64% auto;
  width: 108%;
  height: 103%;
  border: 1px solid #ffbadf38;
  border-radius: 50%;
  background: radial-gradient(ellipse at 56% 21%, #d84a8a3b, transparent 62%);
  box-shadow: 0 0 0 22px #e782ba10, 0 0 0 46px #d985c10d;
  pointer-events: none;
  animation: access-glow 4.5s ease-in-out both;
}

.access-hero-copy {
  padding: clamp(30px, 5vw, 68px);
  color: #fff;
  animation: access-enter .95s .13s var(--ease) both;
}
.access-line {
  display: block;
  width: 62px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--pink), #be9cff);
  transform-origin: left center;
  animation: access-line .85s .43s var(--ease) both;
}
.access-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 730;
  letter-spacing: -.065em;
  line-height: .99;
}
.access-hero h1 span { color: #ff81b2; }
.access-hero p { margin: 19px 0 0; color: #f3edf9; font-size: clamp(1rem, 1.38vw, 1.16rem); }

.access-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 42px clamp(36px, 6vw, 85px) 25px;
}
.access-content { width: min(100%, 390px); margin-inline: auto; animation: access-enter .85s .21s var(--ease) both; }
.access-logo { display: block; width: min(100%, 266px); height: auto; margin-bottom: 34px; }
.access-panel h2 { margin: 0 0 25px; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -.055em; }
.access-field + .access-field { margin-top: 17px; }
.access-field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 680; }
.access-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d5d1e2;
  border-radius: 13px;
  background: #f8f7fc;
  padding: 10px 15px;
  color: var(--ink);
  font: inherit;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.access-field input:focus { outline: none; border-color: #6652a0; box-shadow: 0 0 0 4px #6851a821; background: #fff; }
.access-password { position: relative; }
.access-password:has(.access-reveal:not([hidden])) input { padding-right: 100px; }
.access-reveal {
  position: absolute;
  right: 5px;
  top: 50%;
  translate: 0 -50%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--brand);
  font: 650 .8rem system-ui, sans-serif;
  cursor: pointer;
}
.access-reveal:hover { background: #eae7f6; }
.access-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(115deg, #3e397e, #50377f 63%, #793669);
  color: #fff;
  font: 700 1rem system-ui, sans-serif;
  box-shadow: 0 9px 20px #47377132;
  cursor: pointer;
  transition: transform .24s var(--ease), box-shadow .24s ease;
}
.access-submit::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(108deg, transparent 22%, #fff3 50%, transparent 77%);
  transform: translateX(-110%);
  transition: transform .65s var(--ease);
}
.access-submit:hover { transform: translateY(-2px); box-shadow: 0 13px 23px #47377146; }
.access-submit:hover::before { transform: translateX(110%); }
.access-submit:active { transform: translateY(0); }
.access-arrow { font-size: 1.2em; transition: transform .24s var(--ease); }
.access-submit:hover .access-arrow { transform: translateX(4px); }
.access-submit[aria-busy="true"] { cursor: progress; }
.access-submit[aria-busy="true"] .access-arrow {
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff6;
  border-top-color: #fff;
  border-radius: 50%;
  font-size: 0;
  animation: access-spin .65s linear infinite;
}
.access-recovery {
  display: table;
  margin: 16px auto 0;
  padding: 10px 1px;
  color: var(--brand);
  text-underline-offset: .24em;
  font-size: .9rem;
  font-weight: 630;
}
.access-recovery:hover { color: #82346e; }
.access-recovery:focus-visible, .access-submit:focus-visible, .access-reveal:focus-visible {
  outline: 3px solid #7553ad;
  outline-offset: 3px;
}
.access-panel footer { margin-top: 24px; color: var(--muted); font-size: .78rem; text-align: center; }
.access-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes access-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes access-photo { from { transform: scale(1.075); } to { transform: scale(1); } }
@keyframes access-line { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
@keyframes access-glow { to { transform: translate(-6%, -6%) scale(1.06); } }
@keyframes access-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .access-shell { min-height: 590px; }
  .access-panel { padding-inline: 28px; }
}
@media (max-width: 670px) {
  body.access-page { padding: 16px; }
  .access-shell { grid-template-columns: minmax(0, 1fr); max-width: 470px; min-height: 0; padding: 6px; border-radius: 23px; }
  .access-hero { min-height: 175px; border-radius: 17px; }
  .access-photo { object-position: 70% 36%; }
  .access-hero-copy { padding: 21px; }
  .access-hero h1 { font-size: clamp(1.85rem, 7vw, 2.8rem); }
  .access-line { margin-bottom: 12px; width: 41px; height: 3px; }
  .access-hero p { margin-top: 8px; font-size: .82rem; }
  .access-panel { padding: 26px clamp(14px, 5vw, 28px) 16px; }
  .access-logo { width: min(100%, 212px); margin-bottom: 21px; }
  .access-panel h2 { margin-bottom: 19px; }
  .access-field + .access-field { margin-top: 13px; }
  .access-submit { margin-top: 19px; }
  .access-recovery { margin-top: 11px; }
  .access-panel footer { margin-top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
