html[data-am-public]:has(.asx > .login) {
  --am-auth-ink: #231a43;
  --am-auth-muted: #605772;
  --am-auth-accent: #5942d5;
  --am-auth-accent-hover: #4530b9;
  --am-auth-line: #e4ddf0;
  --am-auth-field: #f9f7ff;
  --am-auth-mint: #d9f6e4;
  color-scheme: light;
  background: #f4f0fc;
}

html[data-am-public]:has(.asx > .login) body {
  background: radial-gradient(ellipse at 86% 5%, #e9defb, transparent 42rem), #f4f0fc;
}

html[data-am-public] .asx:has(> .login) {
  --am-ink: var(--am-auth-ink);
  --am-muted: var(--am-auth-muted);
  --am-violet: var(--am-auth-accent);
  --am-line: var(--am-auth-line);
  --bg: #f4f0fc;
  --s1: #f4f0fc;
  --s2: #fff;
  --s3: var(--am-auth-field);
  --line: var(--am-auth-line);
  --line2: var(--am-auth-line);
  --fg: var(--am-auth-ink);
  --fg2: var(--am-auth-muted);
  --fg3: #726784;
  --gold: var(--am-auth-accent);
  --lime: #18745e;
  display: grid;
  width: min(100%, 1360px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 43px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  color: var(--am-auth-ink);
  background: transparent;
}

html[data-am-public] .asx:has(> .login):not(:has(> .am-auth-art)) {
  grid-template-columns: minmax(0, 600px);
  justify-content: center;
}

html[data-am-public] .asx:has(> .login) > .login {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: auto;
  padding: clamp(25px, 3.2vw, 46px);
  border: 1px solid var(--am-auth-line);
  border-radius: 27px;
  color: var(--am-auth-ink);
  background: #fff;
  box-shadow: 0 20px 52px #39246110, 0 2px 6px #39246108;
  overflow-wrap: anywhere;
}

html[data-am-public] .asx:has(> .login):not(:has(> .am-auth-art)) > .login { grid-column: 1; }

html[data-am-public] .asx .am-auth-art {
  position: relative;
  inset: auto;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  justify-self: stretch;
  gap: 48px;
  min-height: clamp(545px, 72svh, 730px);
  padding: clamp(24px, 3.7vw, 52px);
  overflow: hidden;
  border: 1px solid #53446b;
  border-radius: 27px;
  color: #fff;
  background:
    linear-gradient(0deg, #1d1737 3%, #211841fa 20%, #22184045 72%, #211736ab),
    linear-gradient(110deg, #231a43 0%, #3b287543 65%),
    #231a43 url("/admusic/session.webp") 85% 42% / auto 92% no-repeat;
  box-shadow: 0 20px 54px #2b1e5542;
}

html[data-am-public] .asx .am-auth-art .am-brand { color: #fff; font-size: clamp(1.25rem, 3vw, 1.6rem); }
html[data-am-public] .asx .am-auth-art .am-wave-mark { color: #2b1b56; background: #d8c9ff; }
html[data-am-public] .asx .am-auth-art .am-kicker {
  display: block;
  margin: 0 0 13px;
  color: var(--am-auth-mint);
  font-weight: 800;
  text-transform: none;
  letter-spacing: .035em;
}
html[data-am-public] .asx .am-auth-art h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.049em;
  overflow-wrap: anywhere;
}
html[data-am-public] .asx .am-auth-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid #e3d7ff30;
}
html[data-am-public] .asx .am-auth-legal a { color: #e9e0fa; text-underline-offset: 3px; }
html[data-am-public] .asx .am-auth-art a:focus-visible { outline-color: #d9f6e4; }

html[data-am-public] .asx:has(> .login) > .login > div:first-child { margin: 0 0 15px !important; }
html[data-am-public] .asx .login[data-am-auth-ready] > :has(> .wordmark) { display: none; }
html[data-am-public] .asx .login > :is([style="height:36px"], [style="height: 36px;"]) { display: none; }
html[data-am-public] .asx .login .lang {
  max-width: 100%;
  min-width: 0;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid #e1d8f2;
  border-radius: 10px;
  color: #4c3baa;
  background: #f7f3fe;
  box-shadow: none;
}
html[data-am-public] .asx .login .lang .ic { color: #5644bf; flex: 0 0 auto; }
html[data-am-public] .asx .login .lang select {
  max-width: min(200px, 61vw);
  min-height: 35px;
  min-width: 0;
  border: 0;
  padding: 0;
  color: #3f305f;
  background: transparent;
  font-family: var(--san);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
}

html[data-am-public] .asx .login h1,
html[data-am-public] .asx .login .am-auth-intro h1 {
  margin: 0 0 10px !important;
  color: var(--am-auth-ink);
  font-size: clamp(2.02rem, 4vw, 3.32rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.059em;
  text-align: start;
  text-transform: none;
}
html[data-am-public] .asx .login h1::first-letter { text-transform: uppercase; }
html[data-am-public] .asx .login .am-auth-intro { margin: 0 0 21px; }
html[data-am-public] .asx .login .am-auth-intro p {
  margin: 0;
  color: var(--am-auth-muted);
  font-size: .9rem;
  line-height: 1.58;
}
/* The hydrated register form already supplies its own translated title. */
html[data-am-public="register"] .asx .login:has(.rv > h1) > .am-auth-intro > h1 { display: none; }

html[data-am-public] .asx .login .field { min-width: 0; margin-bottom: 16px; }
html[data-am-public] .asx .login .field > label {
  margin-bottom: 6px;
  color: var(--am-auth-ink);
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.35;
}
html[data-am-public] .asx .login .inp {
  min-width: 0;
  min-height: 49px;
  border: 1px solid var(--am-auth-line);
  border-radius: 12px;
  color: var(--am-auth-ink);
  background: var(--am-auth-field);
  box-shadow: 0 1px 2px #2e1c5007 inset;
}
html[data-am-public] .asx .login .inp:focus-within {
  border-color: #8367eb;
  box-shadow: 0 0 0 3px #8968ee24;
}
html[data-am-public] .asx .login .inp :is(input, select) {
  min-width: 0;
  min-height: 45px;
  color: var(--am-auth-ink);
  background: transparent;
  font-family: var(--san);
  font-size: 16px;
}
html[data-am-public] .asx .login .inp :is(input, select):focus-visible { outline: none; }
html[data-am-public] .asx .login .inp input::placeholder { color: #716981; }
html[data-am-public] .asx .login .inp select option { color: var(--am-auth-ink); background: #fff; }
html[data-am-public] .asx .login .inp > button { width: 43px; min-height: 45px; color: #665b7c; }
html[data-am-public] .asx .login .inp > button:hover { color: var(--am-auth-accent-hover); background: #eee6fb; }
html[data-am-public] .asx .login .inp > button:focus-visible { outline-offset: -3px; }
html[data-am-public] .asx .login .hint { margin-top: 5px; color: var(--am-auth-muted); line-height: 1.45; }
html[data-am-public] .asx .login .check { color: var(--am-auth-ink); }
html[data-am-public] .asx .login .check input[type="checkbox"] { accent-color: var(--am-auth-accent); }
html[data-am-public] .asx .login a:focus-visible,
html[data-am-public] .asx .login button:focus-visible,
html[data-am-public] .asx .login select:focus-visible { outline-color: var(--am-auth-accent); }

html[data-am-public] .asx .login .btn.full:not(.dark) {
  min-height: 49px;
  padding-inline: 17px;
  border: 1px solid #5942d5;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(105deg, #654cdf, #523bbf);
  box-shadow: 0 6px 15px #5942d52b;
  font-size: .95rem;
  font-weight: 800;
}
html[data-am-public] .asx .login .btn.full:not(.dark):not(:disabled):hover {
  border-color: var(--am-auth-accent-hover);
  background: var(--am-auth-accent-hover);
}
html[data-am-public] .asx .login .btn.full:not(.dark):disabled {
  opacity: 1;
  border-color: #e1d9f2;
  color: #6a597f;
  background: #eee9f7;
  box-shadow: none;
}
html[data-am-public] .asx .login .btn.dark {
  color: var(--am-auth-ink);
  background: #f7f3fe;
  border-color: var(--am-auth-line);
}
html[data-am-public] .asx .login form > div:has(> .btn.full) { padding-inline: 0 !important; }
html[data-am-public] .asx .login .alert {
  color: var(--am-auth-ink);
  border-color: #e7dff6;
  background: #f7f3fe;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
html[data-am-public] .asx .login .alert.gold { color: #1c5945; background: #edf9f2; border-color: #d1eddd; }
html[data-am-public] .asx .login .alert.err { color: #952b55; background: #fff1f5; border-color: #f3cfdd; }
html[data-am-public] .asx .login .card { color: var(--am-auth-ink); background: #fff; border-color: var(--am-auth-line); }
html[data-am-public] .asx .login .create { color: var(--am-auth-muted); margin-top: 13px; padding-block: 4px; line-height: 1.55; }
html[data-am-public] .asx .login :is(.create, .forgot, .check) a {
  color: #4f36be;
  font-weight: 800;
  text-underline-offset: 3px;
}
html[data-am-public] .asx .login :is(.create, .forgot, .check) a:hover { color: #362184; }

html:is([data-am-public="login"], [data-am-public="register"], [data-am-public="forgot"], [data-am-public="forgot-id"]) [role="dialog"][aria-labelledby="auth-captcha-title"] {
  color: #231a43 !important;
  border-color: #e4ddf0 !important;
  background: #fff !important;
  box-shadow: 0 23px 65px #2b1e5542 !important;
}
html[data-am-public] [aria-labelledby="auth-captcha-title"] > p { color: #605772 !important; }
html[data-am-public] [aria-labelledby="auth-captcha-title"] > [role="status"] { color: #952b55 !important; }
html[data-am-public] [aria-labelledby="auth-captcha-title"] > button { color: #4f36be !important; }
html[data-am-public] [aria-labelledby="auth-captcha-title"] > div > button:first-child { color: #231a43 !important; background: #f4f0fc !important; border-color: #e4ddf0 !important; }
html[data-am-public] [aria-labelledby="auth-captcha-title"] > div > button:last-child { color: #fff !important; background: #5942d5 !important; }
html[data-am-public] [aria-labelledby="auth-captcha-title"] > div > button:disabled { opacity: .55; }
html[data-am-public] [aria-labelledby="auth-captcha-title"] #auth-captcha-answer { color: #231a43 !important; border-color: #e4ddf0 !important; background: #f8f5fd !important; }

@media (min-width: 925px) {
  html[data-am-public="register"] .asx .login form:has(> .field:nth-child(7)) {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 13px;
  }
  html[data-am-public="register"] .asx .login form:has(> .field:nth-child(7)) > :not(.field) { grid-column: 1 / -1; }
}

@media (max-width: 830px) {
  html[data-am-public] .asx:has(> .login) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    padding: 12px;
  }
  html[data-am-public] .asx:has(> .login) > .login,
  html[data-am-public] .asx .am-auth-art {
    width: min(100%, 565px);
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    border-radius: 20px;
  }
  html[data-am-public] .asx:has(> .login) > .login { padding: clamp(17px, 5vw, 31px); }
  html[data-am-public] .asx .am-auth-art {
    min-height: 0;
    gap: 12px;
    padding: 13px 16px 14px;
    background:
      linear-gradient(90deg, #261b49 0%, #241749eb 39%, #251c4d87 77%, #241a40c9),
      #231a43 url("/admusic/session.webp") right 41% / auto max(180px, 120%) no-repeat;
  }
  html[dir="rtl"][data-am-public] .asx .am-auth-art {
    background:
      linear-gradient(270deg, #261b49 0%, #241749eb 39%, #251c4d87 77%, #241a40c9),
      #231a43 url("/admusic/session.webp") right 41% / auto max(180px, 120%) no-repeat;
  }
  html[data-am-public] .asx .am-auth-art .am-brand { min-height: 34px; gap: 8px; }
  html[data-am-public] .asx .am-auth-art .am-wave-mark { width: 31px; height: 31px; border-radius: 9px; }
  html[data-am-public] .asx .am-auth-art .am-kicker { display: none; }
  html[data-am-public] .asx .am-auth-art h2 { max-width: 82%; font-size: clamp(1.17rem, 4.5vw, 1.65rem); line-height: 1.12; }
  html[data-am-public] .asx .am-auth-legal { gap: 5px 14px; margin-top: 10px; padding-top: 8px; }
  html[data-am-public] .asx .am-auth-legal a { font-size: .73rem; }
  html[data-am-public] .asx:has(> .login) > .login > div:first-child { margin-bottom: 12px !important; }
  html[data-am-public] .asx .login h1,
  html[data-am-public] .asx .login .am-auth-intro h1 { font-size: clamp(1.87rem, 8vw, 2.55rem); }
}
