html {
  min-height: 100%;
  background: #f5f5f7;
}

body.julyres-auth-page-body {
  min-height: 100vh;
  margin: 0;
  color: #3a3a3c;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.julyres-auth-page-body * {
  box-sizing: border-box;
}

.julyres-auth-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(30px, 8vh, 72px) 20px 40px;
  isolation: isolate;
}

.julyres-auth-page-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(250, 250, 252, 0.94), rgba(241, 246, 255, 0.78)),
    var(--julyres-auth-page-bg) center / cover no-repeat;
}

.julyres-auth-page-bg::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
}

.julyres-auth-page-inner {
  position: relative;
  width: min(100%, 460px);
}

.julyres-auth-shell {
  --julyres-auth-blue: #0071e3;
  --julyres-auth-blue-strong: #0067d1;
  --julyres-auth-success: #34c759;
  --julyres-auth-ink: #1d1d1f;
  --julyres-auth-text: #3a3a3c;
  --julyres-auth-muted: #6e6e73;
  --julyres-auth-line: rgba(60, 60, 67, 0.14);
  --julyres-auth-field: rgba(255, 255, 255, 0.78);
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 8px;
  color: var(--julyres-auth-text);
  background: rgba(255, 255, 255, 0.9);
  background-clip: padding-box;
  box-shadow: 0 18px 48px rgba(29, 29, 31, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}

.julyres-auth-shell[data-auth-mode="register"] {
  width: min(100%, 520px);
}

.julyres-auth-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--julyres-auth-ink);
  cursor: default;
  text-decoration: none;
}

.julyres-auth-brand[href] {
  pointer-events: none;
}

.julyres-auth-brand[href]:hover,
.julyres-auth-brand[href]:focus-visible {
  color: var(--julyres-auth-blue);
}

.julyres-auth-brand-img {
  display: block;
  width: auto;
  max-width: 188px;
  height: 44px;
  object-fit: contain;
}

.julyres-auth-logo {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--julyres-auth-blue);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.18);
  font-weight: 650;
  line-height: 1;
}

.julyres-auth-brand-text {
  overflow: hidden;
  color: var(--julyres-auth-ink);
  font-size: 1.08rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.julyres-auth-form {
  margin-top: 24px;
}

.julyres-auth-status {
  display: none;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 59, 48, 0.18);
  border-radius: 8px;
  color: #b42318;
  background: rgba(255, 241, 241, 0.84);
  font-size: 0.9rem;
}

.julyres-auth-status.is-visible {
  display: block;
}

.julyres-auth-status.is-success {
  border-color: rgba(52, 199, 89, 0.2);
  color: #067647;
  background: rgba(236, 253, 243, 0.84);
}

.julyres-auth-fields {
  display: grid;
  gap: 15px;
}

.julyres-auth-field {
  display: grid;
  gap: 7px;
}

.julyres-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.julyres-auth-field label {
  color: var(--julyres-auth-ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.julyres-auth-required {
  margin-left: 2px;
  color: #d70015;
  font-weight: 700;
}

.julyres-auth-field .form-control {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--julyres-auth-line);
  border-radius: 10px;
  color: var(--julyres-auth-ink);
  background: var(--julyres-auth-field);
  background-clip: padding-box;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.78), 0 1px 2px rgba(29, 29, 31, 0.02);
  appearance: none;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.julyres-auth-field .form-control::placeholder {
  color: #a1a1a6;
}

.julyres-auth-field .form-control:hover {
  border-color: rgba(60, 60, 67, 0.24);
  background: rgba(255, 255, 255, 0.92);
}

.julyres-auth-field .form-control:focus {
  border-color: rgba(0, 113, 227, 0.72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}

.julyres-auth-field.is-invalid .form-control {
  border-color: rgba(255, 59, 48, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.julyres-auth-field .form-control[type="file"] {
  min-height: 46px;
  padding: 10px 12px;
  line-height: 1.45;
}

.julyres-auth-field .form-control::file-selector-button {
  margin-right: 10px;
  padding: 5px 11px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 999px;
  color: var(--julyres-auth-ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
}

.julyres-field-error {
  min-height: 0;
  color: #d70015;
  font-size: 0.8rem;
  line-height: 1.45;
}

.julyres-auth-shell .julyres-field-error {
  color: #d70015;
  font-weight: 600;
}

.julyres-auth-shell .julyres-field-error::selection {
  color: #fff;
  background: rgba(215, 0, 21, 0.92);
}

.julyres-auth-field.is-invalid .julyres-field-error {
  min-height: 1.2em;
}

.julyres-auth-toolbar {
  display: flex;
  margin: 17px 0 21px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.julyres-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--julyres-auth-muted);
  font-size: 0.88rem;
}

.julyres-auth-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--julyres-auth-blue);
}

.julyres-auth-link,
.julyres-auth-switch {
  color: var(--julyres-auth-blue);
  font-weight: 600;
  text-decoration: none;
}

.julyres-auth-link:hover,
.julyres-auth-link:focus-visible,
.julyres-auth-switch:hover,
.julyres-auth-switch:focus-visible {
  color: var(--julyres-auth-blue-strong);
  text-decoration: underline;
}

.julyres-auth-submit {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--julyres-auth-blue);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.18);
  cursor: pointer;
  appearance: none;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: 0;
  outline: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.julyres-auth-submit:hover {
  background: #0077ed;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.22);
  transform: translateY(-0.5px);
}

.julyres-auth-submit:focus-visible {
  background: #0077ed;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.22);
  outline: 3px solid rgba(0, 113, 227, 0.16);
  outline-offset: 2px;
}

.julyres-auth-submit:active {
  transform: translateY(0);
}

.julyres-auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.julyres-submit-loading {
  display: none;
}

.julyres-auth-submit.is-loading .julyres-submit-text {
  display: none;
}

.julyres-auth-submit.is-loading .julyres-submit-loading {
  display: inline;
}

.julyres-auth-switchline {
  margin: 20px 0 0;
  color: var(--julyres-auth-muted);
  font-size: 0.9rem;
  text-align: center;
}

.julyres-auth-switchline a {
  margin-left: 6px;
}

.julyres-auth-shell[data-auth-mode="register"] .julyres-auth-fields {
  gap: 13px;
}

.julyres-auth-shell[data-auth-mode="register"] .julyres-auth-submit {
  margin-top: 17px;
}

.julyres-auth-footer {
  margin-top: 21px;
  color: #86868b;
  font-size: 0.78rem;
  text-align: center;
}

.julyres-auth-footer p {
  margin: 5px 0 0;
}

.julyres-auth-footer a {
  color: #6e6e73;
  font-weight: 600;
  text-decoration: none;
}

.julyres-auth-footer a:hover,
.julyres-auth-footer a:focus-visible {
  color: var(--julyres-auth-blue);
}

.julyres-auth-captcha-row,
.julyres-auth-mail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.julyres-auth-captcha {
  width: 116px;
  height: 46px;
  border: 1px solid var(--julyres-auth-line);
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.03);
}

.julyres-auth-captcha:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.16);
  outline-offset: 2px;
}

.julyres-auth-secondary {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 999px;
  color: var(--julyres-auth-blue);
  background: rgba(0, 113, 227, 0.08);
  cursor: pointer;
  appearance: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.julyres-auth-secondary:hover {
  border-color: rgba(0, 113, 227, 0.22);
  background: rgba(0, 113, 227, 0.12);
}

.julyres-auth-secondary:focus-visible {
  border-color: rgba(0, 113, 227, 0.22);
  background: rgba(0, 113, 227, 0.12);
  outline: 3px solid rgba(0, 113, 227, 0.14);
  outline-offset: 2px;
}

.julyres-auth-secondary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.julyres-auth-hint,
.julyres-auth-empty {
  margin-bottom: 16px;
  padding: 12px 13px;
  border: 1px solid var(--julyres-auth-line);
  border-radius: 8px;
  color: var(--julyres-auth-muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.julyres-auth-hint-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 20px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: #86868b;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
}

.julyres-auth-hint-note::before {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-top: 0.64em;
  border-radius: 50%;
  background: #a1a1a6;
  content: "";
}

.julyres-auth-shell[data-auth-mode="lostpwd"] .julyres-auth-status {
  margin-bottom: 14px;
  padding: 9px 11px;
  border-color: rgba(52, 199, 89, 0.18);
  color: #17823b;
  background: rgba(52, 199, 89, 0.08);
  font-size: 0.84rem;
  font-weight: 500;
}

.julyres-auth-shell[data-auth-mode="lostpwd"] .julyres-auth-hint-note {
  margin-top: 8px;
  margin-bottom: 18px;
}

.julyres-auth-empty strong {
  color: var(--julyres-auth-ink);
}

.julyres-auth-shell.is-success {
  text-align: center;
}

.julyres-auth-success {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 24px 0 8px;
}

.julyres-auth-success-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--julyres-auth-success);
  box-shadow: 0 10px 24px rgba(52, 199, 89, 0.2);
}

.julyres-auth-success-icon::before {
  display: block;
  width: 16px;
  height: 27px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 3px 0;
  box-sizing: border-box;
  content: "";
  transform: translateY(-4px) rotate(45deg);
  transform-origin: center;
}

.julyres-auth-success h2 {
  margin: 5px 0 0;
  color: var(--julyres-auth-ink);
  font-size: 1.24rem;
  font-weight: 680;
  line-height: 1.3;
}

.julyres-auth-success p {
  margin: 0;
  color: var(--julyres-auth-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}

.julyres-auth-sync-dots {
  display: inline-flex;
  gap: 7px;
  margin-top: 2px;
}

.julyres-auth-sync-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--julyres-auth-blue);
  animation: julyres-auth-pulse 900ms ease-in-out infinite;
}

.julyres-auth-sync-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.julyres-auth-sync-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.julyres-auth-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 99999;
  display: inline-flex;
  max-width: min(340px, calc(100vw - 32px));
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 8px;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(29, 29, 31, 0.12);
  opacity: 0;
  text-align: center;
  transform: translate(-50%, -10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.julyres-auth-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.julyres-auth-toast.is-hiding {
  opacity: 0;
  transform: translate(-50%, -10px);
}

.julyres-auth-toast-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--julyres-auth-success);
}

.julyres-auth-toast-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

@keyframes julyres-auth-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes julyres-auth-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .julyres-auth-page {
    min-height: 100svh;
    padding: 18px 12px;
  }

  .julyres-auth-shell {
    width: 100%;
    padding: 24px 18px;
  }

  .julyres-auth-brand {
    max-width: 100%;
  }

  .julyres-auth-brand-img {
    max-width: 158px;
    height: 38px;
  }

  .julyres-auth-fields {
    gap: 13px;
  }

  .julyres-auth-field .form-control,
  .julyres-auth-submit,
  .julyres-auth-secondary,
  .julyres-auth-captcha {
    min-height: 46px;
  }

  .julyres-auth-captcha-row,
  .julyres-auth-mail-row {
    grid-template-columns: 1fr;
  }

  .julyres-auth-captcha {
    width: 100%;
  }

  .julyres-auth-toast {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
    transform: translateY(-10px);
  }

  .julyres-auth-toast.is-visible {
    transform: translateY(0);
  }

  .julyres-auth-toast.is-hiding {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .julyres-auth-shell,
  .julyres-auth-submit,
  .julyres-auth-toast,
  .julyres-auth-sync-dots span {
    animation: none !important;
    transition: none !important;
  }
}

/* 独立登录页轻量化，与前台弹窗保持一致的小体量视觉。 */
.julyres-auth-page-inner {
  width: min(100%, 480px);
}

.julyres-auth-shell {
  width: min(100%, 480px);
  padding: 26px 24px 22px;
  border-color: rgba(60, 60, 67, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(29, 29, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.julyres-auth-shell[data-auth-mode="register"] {
  width: min(100%, 480px);
}

.julyres-auth-form {
  margin-top: 20px;
}

.julyres-auth-brand-img {
  max-width: 168px;
  height: 38px;
}

.julyres-auth-fields {
  gap: 13px;
}

.julyres-auth-field .form-control,
.julyres-auth-submit,
.julyres-auth-secondary,
.julyres-auth-captcha {
  min-height: 44px;
}

.julyres-auth-field .form-control {
  border-radius: 8px;
  font-size: 0.92rem;
}

.julyres-auth-submit {
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 113, 227, 0.16);
}

.julyres-auth-success {
  padding-top: 16px;
}

.julyres-auth-success-icon {
  width: 54px;
  height: 54px;
  box-shadow: 0 8px 18px rgba(52, 199, 89, 0.18);
}

.julyres-auth-success h2 {
  font-size: 1.14rem;
}

.julyres-auth-success p {
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .julyres-auth-shell {
    padding: 22px 18px 20px;
  }
}

.julyres-auth-toast {
  position: fixed;
  top: 26px;
  left: 50%;
  right: auto;
  z-index: 999999;
  display: inline-flex;
  width: max-content;
  min-width: 0;
  max-width: min(520px, calc(100vw - 32px));
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(13, 21, 36, 0.96);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.3);
  -webkit-backdrop-filter: blur(16px) saturate(132%);
  backdrop-filter: blur(16px) saturate(132%);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.julyres-auth-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.julyres-auth-toast.is-hiding {
  opacity: 0;
  transform: translate(-50%, -12px);
}

.julyres-auth-toast-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #0cbc87;
  box-shadow: 0 0 0 6px rgba(12, 188, 135, 0.14);
}

.julyres-auth-toast-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
}

.julyres-auth-page-inner.is-auth-switching {
  overflow: hidden;
  transition: height 220ms ease, min-height 220ms ease, transform 260ms ease;
  will-change: height, min-height, transform;
}

.julyres-auth-page-inner.is-auth-height-flipping {
  transform: translateY(var(--julyres-auth-switch-delta-y, 0px));
}

.julyres-auth-shell {
  transition: opacity 160ms ease, transform 160ms ease;
}

.julyres-auth-page-inner.is-auth-switching .julyres-auth-shell {
  animation: none;
}

.julyres-auth-shell.is-auth-switched {
  animation: none !important;
}

.julyres-auth-shell.is-auth-leaving,
.julyres-auth-shell.is-auth-entering {
  opacity: 0;
  transform: translateY(6px) scale(0.995);
  pointer-events: none;
}

.julyres-auth-shell.is-auth-leaving {
  transform: translateY(-6px) scale(0.995);
}

.julyres-auth-shell.is-auth-loading .julyres-auth-switch,
.julyres-auth-switch.is-auth-loading {
  opacity: 0.62;
  pointer-events: none;
}

@media (max-width: 640px) {
  .julyres-auth-toast {
    top: 16px;
    left: 50%;
    right: auto;
    max-width: calc(100vw - 24px);
    padding: 13px 16px 13px 14px;
    border-radius: 15px;
    font-size: 0.94rem;
  }

  .julyres-auth-toast.is-visible {
    transform: translate(-50%, 0);
  }

  .julyres-auth-toast.is-hiding {
    transform: translate(-50%, -12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .julyres-auth-page-inner.is-auth-switching,
  .julyres-auth-shell,
  .julyres-auth-toast {
    animation: none !important;
    transition: none !important;
  }
}

/* 前台登录弹窗外壳：兑换中心只加载 auth.css 时，也保持与首页弹窗一致。 */
.ri-popup:has(.julyres-auth-shell),
.julyres-auth-popup {
  --julyres-auth-popup-width: min(420px, calc(100vw - 28px));
  left: 0;
  right: 0;
  width: auto;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}

@supports (width: 100dvw) {
  .ri-popup:has(.julyres-auth-shell),
  .julyres-auth-popup {
    --julyres-auth-popup-width: min(420px, calc(100dvw - 28px));
  }
}

.ri-popup:has(.julyres-auth-shell) .ri-popup-body,
.julyres-auth-popup .ri-popup-body {
  position: relative;
  width: var(--julyres-auth-popup-width) !important;
  max-width: calc(100vw - 28px) !important;
  max-height: calc(100vh - 104px);
  margin-right: auto !important;
  margin-left: auto !important;
  overflow: visible;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-6px) !important;
}

.ri-popup:has(.julyres-auth-shell) .ri-popup-content,
.julyres-auth-popup .ri-popup-content {
  max-height: calc(100vh - 104px);
  overflow: visible;
  padding: 0 !important;
  background: transparent !important;
}

.ri-popup:has(.julyres-auth-shell) .ri-popup-content > .logo-wrapper,
.julyres-auth-popup .ri-popup-content > .logo-wrapper {
  display: none !important;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-shell,
.julyres-auth-popup .julyres-auth-shell {
  --julyres-auth-blue: #2563eb;
  --julyres-auth-blue-strong: #1d4ed8;
  --julyres-auth-success: #12c766;
  --julyres-auth-ink: #101828;
  --julyres-auth-text: #344054;
  --julyres-auth-muted: #72809a;
  --julyres-auth-line: rgba(31, 85, 242, 0.12);
  width: min(420px, calc(100vw - 28px));
  max-width: 100%;
  gap: 14px;
  padding: 26px 24px 22px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
  animation: none !important;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ri-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-shell,
.julyres-auth-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-shell {
  width: min(420px, calc(100vw - 28px));
  gap: 13px;
  padding-top: 24px;
  padding-bottom: 22px;
}

@supports (width: 100dvw) {
  .ri-popup:has(.julyres-auth-shell) .julyres-auth-shell,
  .julyres-auth-popup .julyres-auth-shell,
  .ri-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-shell,
  .julyres-auth-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-shell {
    width: min(420px, calc(100dvw - 28px));
  }
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-brand,
.julyres-auth-popup .julyres-auth-brand {
  min-height: 40px;
  gap: 10px;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-brand-img,
.julyres-auth-popup .julyres-auth-brand-img {
  max-width: min(178px, 58vw);
  max-height: 40px;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-fields,
.julyres-auth-popup .julyres-auth-fields,
.ri-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-fields,
.julyres-auth-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-fields {
  gap: 12px;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-field label,
.julyres-auth-popup .julyres-auth-field label,
.ri-popup:has(.julyres-auth-shell) .julyres-auth-link,
.julyres-auth-popup .julyres-auth-link,
.ri-popup:has(.julyres-auth-shell) .julyres-auth-switch,
.julyres-auth-popup .julyres-auth-switch,
.ri-popup:has(.julyres-auth-shell) .julyres-auth-check,
.julyres-auth-popup .julyres-auth-check {
  font-size: 0.86rem;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-field .form-control,
.julyres-auth-popup .julyres-auth-field .form-control {
  min-height: 44px;
  padding: 10px 13px;
  border-color: #e9eef5;
  border-radius: 10px;
  background: #f7f9fc;
  font-size: 0.9rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-field .form-control:focus,
.julyres-auth-popup .julyres-auth-field .form-control:focus {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-toolbar,
.julyres-auth-popup .julyres-auth-toolbar {
  margin-top: 13px;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-submit,
.julyres-auth-popup .julyres-auth-submit {
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
  font-size: 0.94rem;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-submit:hover,
.ri-popup:has(.julyres-auth-shell) .julyres-auth-submit:focus-visible,
.julyres-auth-popup .julyres-auth-submit:hover,
.julyres-auth-popup .julyres-auth-submit:focus-visible {
  background: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-captcha,
.julyres-auth-popup .julyres-auth-captcha,
.ri-popup:has(.julyres-auth-shell) .julyres-auth-secondary,
.julyres-auth-popup .julyres-auth-secondary {
  min-height: 44px;
  border-radius: 10px;
}

.ri-popup:has(.julyres-auth-shell) .julyres-auth-footer,
.julyres-auth-popup .julyres-auth-footer {
  padding-top: 13px;
  font-size: 0.74rem;
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close {
  position: absolute;
  left: 50%;
  bottom: -48px;
  z-index: 3;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: transparent;
  background: rgba(17, 24, 39, 0.34);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  backdrop-filter: blur(10px) saturate(112%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateX(-50%);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close::before,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close::before,
.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close::after,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  content: "";
  pointer-events: none;
  transform-origin: center;
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close::before,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close::after,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close:hover,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close:hover {
  background: rgba(17, 24, 39, 0.46);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateX(-50%) translateY(-2px);
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close:active,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close:active {
  transform: translateX(-50%) translateY(0) scale(0.95);
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close .svg-close,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close .svg-close {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: inherit;
  color: transparent !important;
  background: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
}

.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close .svg-close::before,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close .svg-close::before,
.ri-popup:has(.julyres-auth-shell) > .ri-popup-body > .ri-popup-close .svg-close::after,
.julyres-auth-popup > .ri-popup-body > .ri-popup-close .svg-close::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 575.98px) {
  .ri-popup:has(.julyres-auth-shell) .julyres-auth-shell,
  .julyres-auth-popup .julyres-auth-shell,
  .ri-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-shell,
  .julyres-auth-popup:has(.julyres-auth-shell[data-auth-mode="register"]) .julyres-auth-shell {
    width: min(100%, calc(100vw - 24px));
    padding: 22px 18px 20px;
    border-radius: 16px;
  }

  .ri-popup:has(.julyres-auth-shell) .ri-popup-body,
  .julyres-auth-popup .ri-popup-body,
  .ri-popup:has(.julyres-auth-shell) .ri-popup-content,
  .julyres-auth-popup .ri-popup-content {
    max-height: calc(100vh - 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ri-popup:has(.julyres-auth-shell) .ri-popup-content,
  .julyres-auth-popup .ri-popup-content,
  .ri-popup:has(.julyres-auth-shell) .julyres-auth-shell,
  .julyres-auth-popup .julyres-auth-shell {
    animation: none !important;
    transition: none !important;
  }
}
