@import url("./tokens.css");

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(118, 47, 255, 0.32), transparent 32rem),
    radial-gradient(circle at 24% 82%, rgba(242, 56, 166, 0.2), transparent 24rem),
    linear-gradient(135deg, #02040a, #080b18 52%, #02030a);
}

button,
input {
  font: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.55fr);
  min-height: 100vh;
}

.auth-hero {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 100vh;
  padding: 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 4, 12, 0.92), rgba(3, 4, 12, 0.34) 58%, rgba(3, 4, 12, 0.86)),
    url("../assets/art/aurora-artist-hero.png");
  background-size: cover;
  background-position: center;
}

.auth-hero::after,
.loading-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 13, 0), rgba(3, 5, 13, 0.88));
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 950;
}

.auth-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--pink));
  box-shadow: 0 0 32px rgba(118, 47, 255, 0.52);
}

.auth-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8eb7ff;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-copy h1,
.loading-card h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.auth-copy p:not(.eyebrow),
.loading-card p:not(.eyebrow),
.panel-lead,
.panel-note {
  color: #c8cee2;
  line-height: 1.55;
}

.auth-now-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  max-width: 420px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 15, 29, 0.72);
  backdrop-filter: blur(18px);
}

.auth-cover {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: url("../assets/art/aurora-vale.png") center/cover;
}

.auth-now-card strong,
.auth-now-card small {
  display: block;
}

.auth-now-card small {
  margin-top: 4px;
  color: var(--muted);
}

.auth-now-card button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: 48px;
  border-left: 1px solid rgba(151, 169, 220, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(118, 47, 255, 0.22), transparent 18rem),
    rgba(7, 10, 22, 0.9);
}

.auth-panel h2 {
  margin: 0;
  font-size: 2.8rem;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #dbe0f3;
  font-weight: 800;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.login-form input:focus {
  border-color: rgba(132, 71, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(118, 47, 255, 0.16);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

.form-row a,
.panel-note {
  color: #a889ff;
  text-decoration: none;
  font-weight: 800;
}

.form-alert,
.form-success {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.form-alert {
  border: 1px solid rgba(255, 91, 128, 0.36);
  background: rgba(255, 61, 112, 0.12);
  color: #ffb8ca;
}

.form-success {
  border: 1px solid rgba(66, 220, 136, 0.32);
  background: rgba(66, 220, 136, 0.1);
  color: #bcffd8;
}

.access-request {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.access-request summary {
  cursor: pointer;
  color: white;
  font-weight: 900;
}

.primary-action,
.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 32px rgba(90, 67, 255, 0.38);
}

.oauth-button {
  width: 100%;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.loading-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 38px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 4, 12, 0.94), rgba(3, 4, 12, 0.24), rgba(3, 4, 12, 0.92)),
    url("../assets/art/midnight-arcade.png");
  background-size: cover;
  background-position: center;
}

.loading-shell .auth-brand {
  position: absolute;
  top: 38px;
  left: 38px;
}

.loading-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(720px, 100%);
  padding: 46px;
  text-align: center;
  border: 1px solid rgba(151, 169, 220, 0.2);
  border-radius: 22px;
  background: rgba(8, 11, 24, 0.72);
  backdrop-filter: blur(22px);
}

.loading-orbit {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 56, 166, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.loading-orbit i {
  position: absolute;
  inset: 14px;
  border: 2px solid transparent;
  border-top-color: var(--pink);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: spin 1.8s linear infinite;
}

.loading-orbit i:nth-child(2) {
  inset: 30px;
  animation-duration: 2.5s;
  animation-direction: reverse;
  border-top-color: var(--cyan);
}

.loading-orbit i:nth-child(3) {
  inset: 50px;
  animation-duration: 1.2s;
  border-top-color: var(--violet);
}

.loading-progress {
  width: min(440px, 100%);
  height: 6px;
  margin: 28px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.loading-progress i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  animation: loadbar 2.4s ease-in-out infinite;
}

.loading-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.loading-steps span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.loading-steps span.is-active {
  color: white;
  background: rgba(118, 47, 255, 0.42);
}

.public-page {
  background:
    linear-gradient(90deg, rgba(3, 4, 12, 0.94), rgba(3, 4, 12, 0.34), rgba(3, 4, 12, 0.92)),
    url("../assets/art/aurora-artist-hero.png");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.public-shell {
  width: min(1280px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 64px;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-nav div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-nav a {
  color: #d8ddf4;
  text-decoration: none;
  font-weight: 850;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.public-hero {
  max-width: 850px;
  padding: 110px 0 42px;
}

.public-hero h1,
.public-document h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.public-hero p:not(.eyebrow),
.public-document p {
  color: #c8cee2;
  line-height: 1.65;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card,
.public-document article {
  border: 1px solid rgba(151, 169, 220, 0.18);
  border-radius: 18px;
  background: rgba(8, 11, 24, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
}

.pricing-card.is-featured {
  border-color: rgba(132, 71, 255, 0.62);
  background:
    radial-gradient(circle at 72% 0%, rgba(242, 56, 166, 0.22), transparent 18rem),
    rgba(13, 14, 31, 0.82);
}

.pricing-card h2 {
  margin: 0;
  font-size: 2.2rem;
}

.pricing-card strong {
  font-size: 1.2rem;
}

.pricing-card p:not(.eyebrow) {
  min-height: 82px;
  color: #c8cee2;
  line-height: 1.55;
}

.public-document article {
  max-width: 900px;
  margin-top: 88px;
  padding: 42px;
}

.public-document h2 {
  margin: 34px 0 8px;
  font-size: 1.3rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes loadbar {
  0% { width: 18%; transform: translateX(0); }
  50% { width: 76%; transform: translateX(8%); }
  100% { width: 28%; transform: translateX(260%); }
}

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { min-height: 48vh; }
  .auth-panel { border-left: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .auth-hero,
  .auth-panel,
  .loading-shell { padding: 24px; }
  .auth-copy h1,
  .loading-card h1 { font-size: 3.1rem; }
  .loading-card { padding: 28px; }
  .form-row { align-items: flex-start; flex-direction: column; }
  .public-shell { width: min(100% - 28px, 1280px); }
  .public-nav { align-items: flex-start; flex-direction: column; }
  .public-hero { padding-top: 72px; }
  .public-document article { padding: 26px; }
}
