:root {
  --access-panel: rgba(13, 14, 18, .88);
  --access-panel-soft: rgba(255, 255, 255, .045);
  --access-line: rgba(255, 255, 255, .15);
  --access-line-strong: rgba(223, 75, 130, .72);
  --access-text: #f7f2f5;
  --access-muted: #b9afb5;
  --access-accent: #df4b82;
  --access-accent-soft: rgba(223, 75, 130, .16);
  --access-good: #68d8a5;
  --access-danger: #ff7777;
}

* { box-sizing: border-box; }

.vm-access-page {
  min-height: 100vh;
  color: var(--access-text);
  background:
    radial-gradient(circle at 50% 24%, rgba(223, 75, 130, .13), transparent 31rem),
    linear-gradient(180deg, rgba(5, 6, 8, .54), rgba(5, 6, 8, .9)),
    url('/assets/media/public/velvetminute/hero.jpg') center 18% / cover fixed,
    #050608;
}

.vm-access-nav {
  position: sticky;
  z-index: 5;
  top: 10px;
  width: min(1180px, calc(100% - 24px));
  min-height: 52px;
  margin: 10px auto 0;
  padding: 7px 10px 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(8, 9, 12, .68);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px) saturate(125%);
}

.vm-access-logo { display: inline-flex; align-items: center; min-width: 0; }
.vm-access-logo img { display: block; width: auto; height: 30px; max-width: min(210px, 58vw); object-fit: contain; }

.vm-access-close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: var(--access-text);
  background: rgba(255, 255, 255, .05);
  font: 400 25px/1 system-ui, sans-serif;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.vm-access-close:hover,
.vm-access-close:focus-visible { border-color: var(--access-accent); background: var(--access-accent-soft); }

.vm-access-stage {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(34px, 6vh, 72px) 0 72px;
  display: grid;
  place-items: center;
}

.vm-access-intro {
  position: absolute;
  z-index: -1;
  inset: clamp(30px, 7vh, 76px) clamp(18px, 5vw, 74px);
  display: grid;
  gap: 15px;
  place-content: center;
  justify-items: center;
  text-align: center;
  opacity: .34;
  filter: blur(4px);
  transform: scale(1.015);
  pointer-events: none;
}
.vm-access-eyebrow { margin: 0; color: #f08caf; font-size: 12px; font-weight: 760; text-transform: uppercase; }
.vm-access-intro h1 { margin: 0; max-width: 640px; font: 400 clamp(42px, 7vw, 76px)/.98 Georgia, serif; letter-spacing: 0; }
.vm-access-intro > p:not(.vm-access-eyebrow) { max-width: 520px; margin: 0; color: var(--access-muted); font-size: 16px; }

.vm-access-security-note { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--access-muted); font-size: 12px; }
.vm-access-security-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--access-good); box-shadow: 0 0 15px rgba(104, 216, 165, .75); }

.vm-access-workspace {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .022)),
    rgba(11, 12, 17, .86);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .56), inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px) saturate(118%);
  transition: width 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body[data-access-mode="signup"] .vm-access-workspace { width: min(660px, 100%); }

.vm-access-mode-tabs { display: none; }
.vm-access-mode {
  min-width: 0;
  min-height: 66px;
  padding: 10px 12px;
  display: grid;
  place-content: center;
  gap: 2px;
  border: 0;
  border-right: 1px solid var(--access-line);
  color: var(--access-muted);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  text-align: center;
}
.vm-access-mode:last-child { border-right: 0; }
.vm-access-mode strong { color: inherit; font-size: 13px; }
.vm-access-mode small { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.vm-access-mode:hover,
.vm-access-mode:focus-visible { color: var(--access-text); background: rgba(255, 255, 255, .06); }
.vm-access-mode[aria-selected="true"] { color: var(--access-text); background: var(--access-accent-soft); box-shadow: inset 0 -2px var(--access-accent); }

.vm-access-notice { min-height: 34px; padding: 9px 22px; border-bottom: 1px solid var(--access-line); color: var(--access-muted); background: rgba(0, 0, 0, .24); font-size: 11px; }
.vm-access-notice[data-state="error"] { color: var(--access-danger); }
.vm-access-notice[data-state="good"] { color: var(--access-good); }

.vm-access-panel { min-height: 0; padding: 25px 26px 28px; }
.vm-access-form { position: relative; display: grid; gap: 18px; animation: vmAccessPanelIn 190ms ease both; }
.vm-access-floating-mode {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid rgba(223, 75, 130, .72);
  border-radius: 999px;
  color: #fff7fa;
  background: linear-gradient(135deg, rgba(187, 34, 91, .92), rgba(233, 83, 139, .78));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  cursor: pointer;
  font-weight: 760;
}
.vm-access-floating-mode:hover,
.vm-access-floating-mode:focus-visible { border-color: #ffb4ce; filter: brightness(1.06); transform: translateY(-1px); }
.vm-access-form-head { display: grid; gap: 5px; }
.vm-access-form > .vm-access-form-head,
.vm-access-step-head { padding-right: 142px; }
.vm-access-form-head h2 { margin: 0; font: 400 30px/1.05 Georgia, serif; letter-spacing: 0; }
.vm-access-form-head p { margin: 0; color: var(--access-muted); font-size: 12px; }

.vm-access-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.vm-access-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.vm-access-field.wide { grid-column: 1 / -1; }
.vm-access-field > span:first-child { color: var(--access-muted); font-size: 11px; font-weight: 720; }
.vm-access-field input,
.vm-access-field select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--access-line);
  border-radius: 7px;
  color: var(--access-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .045));
  outline: none;
}
.vm-access-field input:focus,
.vm-access-field select:focus { border-color: var(--access-line-strong); box-shadow: 0 0 0 3px rgba(223, 75, 130, .12); }
.vm-access-field select option { color: #171319; background: #f5f2f4; }

.vm-access-check { display: flex; align-items: flex-start; gap: 9px; color: var(--access-muted); font-size: 11px; cursor: pointer; }
.vm-access-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--access-accent); }
.vm-access-check[data-locked="true"] { cursor: not-allowed; opacity: .46; }

.vm-access-agreement-field,
.vm-access-signature-field { grid-column: 1 / -1; display: grid; gap: 10px; min-width: 0; }
.vm-access-agreement-head,
.vm-access-signature-label { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vm-access-agreement-head strong,
.vm-access-signature-label strong { font-size: 12px; }
.vm-access-agreement-head span,
.vm-access-signature-label span { color: var(--access-muted); font-size: 10px; text-align: right; }
.vm-access-agreement {
  width: 100%;
  height: clamp(210px, 31vh, 300px);
  overflow: auto;
  padding: 15px 16px 34px;
  border: 1px solid var(--access-line);
  border-radius: 7px;
  color: rgba(247, 242, 245, .86);
  background: rgba(3, 4, 7, .58);
  font-size: 11px;
  line-height: 1.58;
  white-space: pre-wrap;
  scrollbar-gutter: stable;
}
.vm-access-agreement:focus { border-color: var(--access-line-strong); outline: none; box-shadow: 0 0 0 3px rgba(223, 75, 130, .12); }
.vm-access-agreement-field[data-reviewed="true"] .vm-access-agreement { border-color: rgba(104, 216, 165, .52); box-shadow: 0 0 0 3px rgba(104, 216, 165, .08); }
.vm-access-agreement-note,
.vm-access-signature-note { min-height: 16px; color: var(--access-muted); font-size: 10px; }
.vm-access-signature-note[data-state="good"] { color: var(--access-good); }

.vm-access-signature-pad {
  position: relative;
  width: 100%;
  height: clamp(150px, 22vh, 210px);
  overflow: hidden;
  border: 1px solid rgba(223, 75, 130, .3);
  border-radius: 7px;
  background: linear-gradient(180deg, #fffaf4, #f1e4d8);
  box-shadow: inset 0 1px rgba(255, 255, 255, .82), 0 14px 34px rgba(0, 0, 0, .24);
}
.vm-access-signature-pad::after { content: ''; position: absolute; right: 24px; bottom: 39px; left: 24px; border-top: 1px solid rgba(37, 26, 30, .34); pointer-events: none; }
.vm-access-signature-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.vm-access-signature-canvas:focus-visible { outline: 2px solid var(--access-accent); outline-offset: -3px; }
.vm-access-signature-guide { position: absolute; right: 25px; bottom: 19px; color: rgba(37, 26, 30, .58); font-size: 9px; pointer-events: none; }
.vm-access-signature-actions { display: flex; justify-content: flex-end; gap: 8px; }
.vm-access-signature-actions .vm-access-button { min-height: 34px; padding: 6px 11px; font-size: 11px; }

.vm-access-form-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.vm-access-link { border: 0; padding: 3px 0; color: #ef8aaf; background: transparent; cursor: pointer; font-weight: 700; }
.vm-access-link:hover,
.vm-access-link:focus-visible { color: #ffc0d6; }

.vm-access-actions { display: flex; justify-content: flex-end; gap: 9px; align-items: center; }
.vm-access-button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--access-line);
  border-radius: 7px;
  color: var(--access-text);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  font-weight: 750;
}
.vm-access-button.primary { border-color: #f05e94; background: linear-gradient(135deg, #bb225b, #e9538b); box-shadow: 0 9px 24px rgba(187, 34, 91, .24); }
.vm-access-button:hover,
.vm-access-button:focus-visible { border-color: rgba(255, 255, 255, .42); filter: brightness(1.06); }

body[data-access-mode="login"] .vm-access-fields { grid-template-columns: 1fr; }
body[data-access-mode="login"] .vm-access-actions,
body[data-access-mode="recovery"] .vm-access-actions { display: block; }
body[data-access-mode="login"] .vm-access-actions .vm-access-button.primary,
body[data-access-mode="recovery"] .vm-access-actions .vm-access-button.primary { width: 100%; min-height: 48px; }

.vm-access-step-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.vm-access-step-count { color: #ef8aaf; font-size: 11px; font-weight: 740; white-space: nowrap; }
.vm-access-progress { height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.vm-access-progress span { display: block; height: 100%; background: var(--access-accent); transition: width 180ms ease; }

.vm-access-account-types { display: grid; gap: 9px; }
.vm-access-account-type { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--access-line); border-radius: 7px; background: var(--access-panel-soft); cursor: pointer; }
.vm-access-account-type input { margin-top: 3px; accent-color: var(--access-accent); }
.vm-access-account-type span { display: grid; gap: 2px; }
.vm-access-account-type small { color: var(--access-muted); }

.vm-access-password-rules { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 12px; padding: 10px 12px; border-left: 2px solid var(--access-accent); background: rgba(223, 75, 130, .07); }
.vm-access-password-rules span { color: var(--access-muted); font-size: 10px; }
.vm-access-password-rules span[data-pass="true"] { color: var(--access-good); }

.vm-access-summary { grid-column: 1 / -1; display: grid; gap: 7px; padding: 13px; border: 1px solid var(--access-line); border-radius: 7px; background: var(--access-panel-soft); }
.vm-access-summary-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-size: 11px; }
.vm-access-summary-row span:first-child { color: var(--access-muted); }
.vm-access-error { color: var(--access-danger); font-size: 11px; }
.vm-access-noscript { margin: 30px; color: var(--access-danger); }

@keyframes vmAccessPanelIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .vm-access-page { background-attachment: scroll; }
  .vm-access-stage { align-items: start; padding-top: 30px; }
  .vm-access-intro { display: none; }
}

@media (max-width: 560px) {
  .vm-access-nav { top: 6px; width: calc(100% - 12px); margin-top: 6px; }
  .vm-access-stage { width: calc(100% - 18px); min-height: auto; padding: 28px 0 44px; }
  .vm-access-workspace,
  body[data-access-mode="signup"] .vm-access-workspace { width: 100%; }
  .vm-access-panel { padding: 18px 15px 20px; }
  .vm-access-floating-mode { position: static; justify-self: end; margin-bottom: -3px; }
  .vm-access-form > .vm-access-form-head,
  .vm-access-step-head { padding-right: 0; }
  .vm-access-fields { grid-template-columns: 1fr; }
  .vm-access-field.wide { grid-column: auto; }
  .vm-access-agreement-field,
  .vm-access-signature-field { grid-column: auto; }
  .vm-access-agreement-head,
  .vm-access-signature-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .vm-access-agreement-head span,
  .vm-access-signature-label span { text-align: left; }
  .vm-access-agreement { height: min(270px, 38vh); padding-inline: 13px; }
  .vm-access-signature-pad { height: 165px; }
  .vm-access-password-rules { grid-column: auto; grid-template-columns: 1fr; }
  .vm-access-form-meta { align-items: flex-start; flex-direction: column; }
  .vm-access-actions { justify-content: stretch; }
  .vm-access-button { flex: 1; }
  .vm-access-summary-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
