:root {
  --color-bg: #f7f7f8;
  --color-text: #111827;
  --color-secondary: #667085;
  --color-accent: #7c5cfc;
  --color-surface: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 18%, rgba(124, 92, 252, 0.12), transparent 24rem),
    var(--color-bg);
}

button,
input {
  font: inherit;
}

.access-shell {
  display: grid;
  min-height: calc(100vh - 4rem);
  min-height: calc(100dvh - 4rem);
  padding: 2rem 1.25rem;
  place-items: center;
}

.access-card {
  width: min(100%, 29rem);
  padding: clamp(1.75rem, 6vw, 2.75rem);
  border: 1px solid rgba(124, 92, 252, 0.22);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 65px rgba(17, 24, 39, 0.09);
}

.access-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--color-text);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.access-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-card h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.access-copy {
  margin: 1rem 0 0;
  color: var(--color-secondary);
  line-height: 1.65;
}

.access-form {
  display: grid;
  margin-top: 2rem;
}

.access-form label {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.access-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 0.8rem;
  outline: none;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.access-form input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 252, 0.13);
}

.access-error {
  min-height: 1.25rem;
  margin: 0.5rem 0;
  color: #b42318;
  font-size: 0.8rem;
}

.access-form button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 92, 252, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.access-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(124, 92, 252, 0.3);
}

.access-form button:focus-visible,
.access-footer a:focus-visible {
  outline: 3px solid rgba(124, 92, 252, 0.4);
  outline-offset: 3px;
}

.access-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.access-footer {
  min-height: 4rem;
  padding: 1rem;
  color: var(--color-secondary);
  font-size: 0.8rem;
  text-align: center;
}

.access-footer a {
  color: inherit;
  font-weight: 650;
  text-underline-offset: 0.2em;
}

.access-footer a:hover {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .access-shell {
    align-items: center;
    padding-inline: 1rem;
  }

  .access-card {
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .access-form input,
  .access-form button {
    transition: none;
  }
}
