:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f4f1eb;
  color: #121218;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 224, 74, .45), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(111, 83, 255, .25), transparent 32%),
    #f4f1eb;
}

button, input { font: inherit; }

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.access-card {
  position: relative;
  width: min(100%, 510px);
  padding: clamp(30px, 7vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(18, 18, 24, .12);
  border-radius: 32px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 32px 90px rgba(28, 22, 62, .14);
  backdrop-filter: blur(22px);
}

.access-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  top: -80px;
  border-radius: 46% 54% 61% 39%;
  background: #7557ff;
  filter: blur(2px);
  opacity: .95;
  transform: rotate(24deg);
  pointer-events: none;
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 28px;
  border: 4px solid #6f53ff;
  border-radius: 21px 25px 18px 24px;
  background: #101333;
  box-shadow: 0 0 0 5px #ffe04a;
  transform: rotate(-5deg);
}

.brand-mark span {
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 9px #ffbe74;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6f53ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 52px);
  line-height: .98;
  letter-spacing: -.055em;
}

.intro {
  max-width: 38em;
  margin: 20px 0 32px;
  color: #66646d;
  font-size: 15px;
  line-height: 1.75;
}

.access-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.password-field { position: relative; }

.password-field input {
  width: 100%;
  height: 58px;
  padding: 0 72px 0 18px;
  border: 1px solid #d8d4df;
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, .92);
  color: #121218;
  transition: border-color .2s, box-shadow .2s;
}

.password-field input:focus {
  border-color: #6f53ff;
  box-shadow: 0 0 0 4px rgba(111, 83, 255, .13);
}

.reveal-button {
  position: absolute;
  right: 14px;
  top: 50%;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #6f53ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}

.form-message {
  min-height: 22px;
  margin: 10px 2px 8px;
  color: #6d6a73;
  font-size: 13px;
}

.form-message.is-error { color: #c53535; }
.form-message.is-success { color: #197c52; }

.submit-button {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #15131b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.submit-button:hover:not(:disabled) { transform: translateY(-2px); background: #6f53ff; }
.submit-button:disabled { opacity: .62; cursor: wait; }

.access-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e8e5eb;
  color: #8a8790;
  font-size: 11px;
}

.access-meta i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #55c891;
  box-shadow: 0 0 0 4px rgba(85, 200, 145, .15);
}

@media (max-width: 520px) {
  .access-card { border-radius: 24px; }
  .access-meta { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
