:root {
  --bg: #07090c;
  --panel: #0e1216;
  --line: #252b34;
  --text: #f7f6fb;
  --muted: #8e929e;
  --accent: #a78bfa;
  --accent2: #d8b4fe;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(167, 139, 250, 0.14),
      transparent 38%
    ),
    radial-gradient(circle at 15% 75%, rgba(89, 70, 160, 0.08), transparent 30%);
}

.login-nav {
  position: relative;
  z-index: 2;
  width: calc(100% - 56px);
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-nav > a:last-child {
  color: #8e929e;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 800;
}

.login-logo img {
  width: 34px;
}

.auth-role-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 16px;
}

.auth-role-choice button,
.auth-role-choice a {
  min-width: 112px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--panel);
  font: 750 0.84rem "Manrope", sans-serif;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.auth-role-choice button:hover,
.auth-role-choice a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.auth-role-choice button.active {
  color: #fff;
  border-color: #8b5cf6;
  background: #8b5cf6;
  box-shadow: 0 10px 24px -14px rgba(109, 40, 217, 0.72);
}

.auth-role-choice button:focus-visible,
.auth-role-choice a:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.2);
  outline-offset: 3px;
}

.auth-role-choice[hidden] {
  display: none;
}

.auth-password-requirements {
  margin-top: -10px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.auth-account-switch {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.auth-account-switch button {
  padding: 2px;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: 750 0.72rem "Manrope", sans-serif;
  cursor: pointer;
}

.auth-account-switch button:hover {
  text-decoration: underline;
}

.auth-account-switch button:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.2);
  outline-offset: 3px;
  border-radius: 3px;
}

.role-main {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 55px auto 70px;
}

.role-head {
  max-width: 740px;
  margin: 0 auto 45px;
  text-align: center;
}

.role-head > span,
.role-label {
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.role-head h1 {
  margin: 13px 0 14px;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.role-head p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.role-card {
  position: relative;
  min-height: 510px;
  padding: 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(145deg, #11151b, #0b0e12);
  text-decoration: none;
  transition: 0.28s ease;
}

.role-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -135px;
  top: -145px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.08);
  transition: transform 0.45s;
}

.role-card:hover {
  transform: translateY(-7px);
  border-color: #5d4c91;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.34);
}

.role-card:hover::before {
  transform: scale(1.35);
}

.role-card.creator {
  background: linear-gradient(145deg, #171225, #0d0c12);
}

.role-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.role-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #100b1d;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 15px 30px rgba(167, 139, 250, 0.2);
}

.role-arrow {
  color: #777c89;
  font-size: 1.2rem;
}

.role-card h2 {
  max-width: 420px;
  margin: 12px 0 15px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.role-card p {
  max-width: 430px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.role-card ul {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  list-style: none;
  color: #c2c4cc;
  font-size: 0.75rem;
}

.role-card li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 9px;
  border-radius: 50%;
  color: var(--accent);
  background: #211936;
  font-size: 0.625rem;
}

.role-cta {
  position: absolute;
  left: 31px;
  right: 31px;
  bottom: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
}

.role-cta i {
  font-style: normal;
  transition: transform 0.2s;
}

.role-card:hover .role-cta i {
  transform: translateX(5px);
}

.role-note {
  margin-top: 25px;
  color: #5f636d;
  text-align: center;
  font-size: 0.67rem;
}

.auth-turnstile {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.auth-turnstile[data-required="true"] {
  min-height: 68px;
  padding: 8px;
  border: 1px solid #e6ddf8;
  background: #f7f4ff;
}

.auth-turnstile[data-state="checking"]:empty {
  height: 1px;
}

.auth-turnstile iframe {
  max-width: 100%;
}

html[data-theme="dark"] .auth-turnstile[data-required="true"] {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(109, 40, 217, 0.08);
}

@media (max-width: 760px) {
  .role-main {
    margin-top: 34px;
  }
  .role-head {
    margin-bottom: 30px;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .role-card {
    min-height: 460px;
    padding: 25px;
  }
  .role-cta {
    left: 25px;
    right: 25px;
  }
  .login-nav {
    height: 70px;
  }
}
