.sm-account-link {
  background: transparent;
  cursor: pointer;
}

.sm-cursor-glow {
  display: none;
}

.sm-login-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility .2s ease, opacity .2s ease;
}

.sm-login-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.sm-login-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(126, 34, 206, .2), transparent 38%),
    radial-gradient(circle at 14% 16%, rgba(168, 85, 247, .09), transparent 28%),
    rgba(4, 1, 9, .88);
  backdrop-filter: blur(14px);
  cursor: default;
}

.sm-login-card {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(100%, 470px);
  max-height: calc(100vh - 40px);
  overflow: hidden auto;
  padding: 38px;
  border: 1px solid rgba(192, 132, 252, .72);
  border-radius: 18px;
  outline: none;
  background:
    radial-gradient(circle at 86% 4%, rgba(168, 85, 247, .3), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(109, 40, 217, .18), transparent 36%),
    linear-gradient(145deg, #1d1128 0%, #120a1b 52%, #0c0712 100%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .64),
    0 0 0 1px rgba(168, 85, 247, .18),
    0 0 34px rgba(168, 85, 247, .28),
    0 0 84px rgba(126, 34, 206, .15),
    inset 0 1px 0 rgba(255, 255, 255, .09);
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
}

.sm-login-card::before {
  position: absolute;
  top: -1px;
  left: 12%;
  z-index: 2;
  width: 76%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #a855f7 20%, #e9d5ff 50%, #a855f7 80%, transparent);
  box-shadow: 0 0 12px #c084fc, 0 0 28px rgba(168, 85, 247, .8);
  content: "";
  pointer-events: none;
}

.sm-login-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .035), transparent 30%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(192, 132, 252, .018) 18px 19px);
  content: "";
  pointer-events: none;
}

.sm-login-modal.is-open .sm-login-card {
  transform: translateY(0) scale(1);
}

.sm-login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, .34);
  border-radius: 9px;
  background: rgba(168, 85, 247, .07);
  color: #a9b0bc;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.sm-login-close:hover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, .15);
  color: white;
}

.sm-login-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(216, 180, 254, .7);
  border-radius: 15px;
  background: linear-gradient(145deg, #9333ea, #581c87);
  color: #f3e8ff;
  font-size: 23px;
  box-shadow:
    0 12px 32px rgba(88, 28, 135, .38),
    0 0 22px rgba(168, 85, 247, .42),
    inset 0 1px 0 rgba(255, 255, 255, .24);
}

.sm-login-eyebrow {
  margin: 0 0 8px;
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.sm-login-card h2 {
  margin: 0;
  background: linear-gradient(95deg, #fff 12%, #f3e8ff 58%, #d8b4fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.sm-login-copy {
  margin: 12px 0 26px;
  color: #a9b0bc;
  font-size: 14px;
  line-height: 1.65;
}

.sm-login-form {
  display: grid;
  gap: 10px;
}

.sm-login-form[hidden] {
  display: none;
}

.sm-login-form label {
  color: #f3edf9;
  font-size: 13px;
  font-weight: 800;
}

.sm-login-field {
  position: relative;
}

.sm-login-field i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #d8b4fe;
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.sm-login-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px 12px 43px;
  border: 1px solid rgba(168, 85, 247, .3);
  border-radius: 10px;
  outline: none;
  background: rgba(7, 3, 12, .78);
  color: white;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sm-login-field input::placeholder {
  color: #736c7e;
}

.sm-login-field input:focus {
  border-color: #c084fc;
  background: rgba(10, 5, 17, .92);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .16), 0 0 20px rgba(168, 85, 247, .2);
}

.sm-login-altcha {
  min-height: 45px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 9px;
}

.sm-login-submit.sm-primary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  border: 1px solid rgba(216, 180, 254, .62);
  border-radius: 10px;
  background: linear-gradient(100deg, #7e22ce 0%, #a855f7 52%, #6d28d9 100%);
  color: white;
  box-shadow:
    0 12px 28px rgba(88, 28, 135, .35),
    0 0 22px rgba(168, 85, 247, .24),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sm-login-submit.sm-primary-button:hover:not(:disabled) {
  color: white;
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow:
    0 15px 32px rgba(88, 28, 135, .42),
    0 0 30px rgba(192, 132, 252, .36),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}

.sm-login-submit.sm-primary-button:disabled {
  cursor: wait;
  opacity: .62;
}

.sm-login-back-button {
  justify-self: center;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #a9b0bc;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sm-login-back-button:hover {
  color: #d8b4fe;
}

.sm-login-resend-row {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  color: #8e8798;
  font-size: 12px;
  font-weight: 700;
}

.sm-login-resend-countdown strong {
  color: #d8b4fe;
}

.sm-login-resend-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c084fc;
  font: inherit;
  cursor: pointer;
}

.sm-login-resend-button:hover:not(:disabled) {
  color: #e9d5ff;
  text-decoration: underline;
}

.sm-login-resend-button:disabled {
  color: #736c7e;
  cursor: wait;
}

.sm-login-message {
  min-height: 21px;
  margin: 12px 0 0;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
}

.sm-login-message.is-success {
  color: #86efac;
}

.sm-login-security {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(168, 85, 247, .2);
  color: #8e8798;
  font-size: 11px;
  text-align: center;
}

.sm-login-security i {
  margin-right: 5px;
  color: #d8b4fe;
}

.sm-body.is-login-open {
  overflow: hidden;
}

.sm-account-link[data-streaming-login-open] {
  border-color: #c084fc;
  background: linear-gradient(100deg, #7e22ce, #a855f7 58%, #6d28d9);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(216, 180, 254, .2),
    0 0 22px rgba(168, 85, 247, .38),
    0 10px 24px rgba(88, 28, 135, .32);
}

.sm-account-link[data-streaming-login-open]:hover {
  border-color: #e9d5ff;
  background: linear-gradient(100deg, #9333ea, #c084fc 58%, #7c3aed);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .28),
    0 0 30px rgba(192, 132, 252, .58),
    0 12px 28px rgba(88, 28, 135, .4);
}

@media (hover: hover) and (pointer: fine) {
  .sm-cursor-glow {
    --sm-cursor-x: -300px;
    --sm-cursor-y: -300px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, .14) 0%, rgba(168, 85, 247, .07) 34%, transparent 72%);
    filter: blur(2px);
    opacity: 0;
    transform: translate3d(var(--sm-cursor-x), var(--sm-cursor-y), 0) translate(-50%, -50%);
    transition: opacity .18s ease;
    pointer-events: none;
    will-change: transform;
  }

  .sm-cursor-glow.is-visible {
    opacity: 1;
  }
}

@media (max-width: 575.98px) {
  .sm-login-card {
    padding: 30px 22px 24px;
    border-radius: 14px;
  }

  .sm-login-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 20px;
  }
}
