:root {
  --auth-ink: #141c2d;
  --auth-muted: #66748a;
  --auth-line: #dfe7f1;
  --auth-nav: #272075;
  --auth-orange: #ff9900;
  --auth-coral: #ff526b;
  --auth-cyan: #42cbd2;
  --auth-green: #38b985;
  --auth-violet: #8d86d9;
  --auth-paper: #ffffff;
  --auth-warm: #fff8eb;
  --auth-shadow: 0 24px 60px rgba(30, 42, 82, 0.13);
  --auth-soft-shadow: 0 14px 36px rgba(30, 42, 82, 0.09);
}

.auth-user-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(223, 231, 241, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(30, 42, 82, 0.1);
}

.auth-user-link,
.auth-user-static {
  min-width: 104px;
  display: grid;
  gap: 1px;
  padding: 6px 11px 6px 13px;
  border-radius: 999px;
  color: var(--auth-ink);
  text-decoration: none;
  line-height: 1.1;
}

.auth-user-link:hover {
  background: #fff4df;
}

.auth-user-link strong,
.auth-user-static strong {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-user-link small,
.auth-user-static small {
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 800;
}

.auth-logout-button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f4f1ff;
  color: var(--auth-nav);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-logout-button:hover {
  background: #ebe7ff;
}

.home-auth-chip {
  position: absolute;
  z-index: 6;
  top: 28px;
  right: 34px;
}

[data-admin-only][hidden] {
  display: none !important;
}

.login-page,
.users-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 153, 0, 0.18), transparent 30%),
    linear-gradient(180deg, #fff8eb 0, #fffaf4 45%, #ffffff 100%);
}

.login-page *,
.users-page * {
  box-sizing: border-box;
}

.login-page a,
.users-page a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  width: min(1180px, calc(100vw - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 76px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
}

.login-brand-panel {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.92), transparent 15%),
    linear-gradient(135deg, #ffad19 0%, #ff9700 50%, #ff526b 100%);
  box-shadow: 0 30px 70px rgba(255, 153, 0, 0.24);
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 78px;
  width: min(420px, 54%);
  height: 142px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, rgba(255, 82, 107, 0.42), rgba(39, 32, 117, 0.14));
  transform: rotate(-11deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.login-brand-panel h1 {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-card {
  border: 1px solid rgba(239, 242, 248, 0.96);
  border-radius: 26px;
  padding: clamp(26px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--auth-shadow);
}

.login-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.login-card p {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

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

.login-form label,
.user-form label {
  display: grid;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 850;
}

.login-form input,
.user-form input,
.user-form select,
.user-form textarea,
.users-filter input,
.users-filter select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  outline: 0;
}

.login-form input:focus,
.user-form input:focus,
.user-form select:focus,
.user-form textarea:focus,
.users-filter input:focus,
.users-filter select:focus {
  border-color: rgba(255, 153, 0, 0.64);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.14);
}

.login-submit,
.users-primary-button,
.users-secondary-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  color: #fff;
  background: var(--auth-orange);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 153, 0, 0.2);
}

.login-submit:hover,
.users-primary-button:hover {
  background: #f08b00;
}

.users-secondary-button {
  border: 1px solid #dadff0;
  color: var(--auth-nav);
  background: #fff;
  box-shadow: none;
}

.users-secondary-button:hover {
  background: #f5f3ff;
}

.login-error,
.users-toast {
  min-height: 20px;
  margin: 0;
  color: #d6404b;
  font-size: 13px;
  font-weight: 850;
}

.users-toast:not(:empty) {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--auth-nav);
  box-shadow: 0 18px 42px rgba(30, 42, 82, 0.18);
}

.users-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 88px;
  padding: 22px 34px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 250, 239, 0.94);
  backdrop-filter: blur(14px);
}

.users-header h1 {
  margin: 0 0 6px;
  color: var(--auth-ink);
  font-size: 28px;
  line-height: 1.22;
  font-weight: 950;
}

.users-header p {
  margin: 6px 0 0;
  color: var(--auth-muted);
  font-size: 15px;
  font-weight: 800;
}

.users-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.users-page .users-nav-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41, 33, 127, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.88);
  color: #29217f;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(30, 42, 82, 0.08);
}

.users-nav-button:hover {
  background: #f5f3ff;
}

.users-workspace {
  width: min(1560px, calc(100vw - 42px));
  margin: 0 auto;
  padding: 24px 0 50px;
  display: grid;
  gap: 22px;
}

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

.users-stat {
  min-height: 104px;
  border-radius: 22px;
  padding: 16px 22px;
  color: #fff;
  display: grid;
  align-content: center;
  gap: 7px;
  box-shadow: var(--auth-soft-shadow);
}

.users-stat:nth-child(1) {
  background: var(--auth-coral);
}

.users-stat:nth-child(2) {
  background: var(--auth-nav);
}

.users-stat:nth-child(3) {
  background: var(--auth-cyan);
}

.users-stat:nth-child(4) {
  background: var(--auth-orange);
}

.users-stat:nth-child(5) {
  background: #2fb78c;
}

.users-stat span {
  font-size: 15px;
  font-weight: 850;
}

.users-stat strong {
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.users-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(160px, 0.7fr));
  gap: 20px;
  border: 1px solid #eef2f8;
  border-radius: 24px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--auth-soft-shadow);
}

.users-filter label {
  display: grid;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 850;
}

.users-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.users-result-line {
  color: var(--auth-muted);
  font-size: 16px;
  font-weight: 900;
}

.users-grid {
  --users-grid-column-count: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  grid-auto-rows: 1px;
  align-items: start;
  column-gap: 20px;
  row-gap: 10px;
}

.user-card {
  min-height: 132px;
  border: 1px solid #edf1f8;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--auth-soft-shadow);
  display: grid;
  gap: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.user-card:not(.is-expanded) {
  min-height: 104px;
  padding-block: 16px;
}

.user-card:not(.is-expanded) .user-card-head {
  align-items: center;
}

.user-card:hover {
  border-color: #dfe6f1;
  box-shadow: 0 14px 34px rgba(25, 43, 70, 0.1);
}

.user-card-head {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 16px;
}

.user-card-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.user-card-body {
  padding-top: 2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.user-card-body[hidden] {
  display: none;
}

.user-card-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  flex: 0 0 auto;
}

.user-card-actions .user-toggle-card {
  min-width: 56px;
  min-height: 30px;
  padding: 5px 11px;
  font-size: 12px;
}

.user-avatar-upload {
  width: 78px;
  min-width: 0;
  display: grid;
  justify-items: center;
  cursor: pointer;
}

.user-avatar-frame {
  position: relative;
  width: 68px;
  height: 68px;
  border: 2px solid #dce8f8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #2f67d9;
  background: linear-gradient(145deg, #eef5ff, #dbe9ff);
  box-shadow: 0 8px 20px rgba(36, 91, 181, 0.12);
}

.user-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-initial {
  font-size: 25px;
  line-height: 1;
}

.user-avatar-camera {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2877ee;
  font-size: 13px;
}

.user-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.user-avatar-upload:hover .user-avatar-frame,
.user-avatar-upload:focus-within .user-avatar-frame {
  border-color: #79a9f6;
  box-shadow: 0 10px 24px rgba(36, 91, 181, 0.22);
}

.user-avatar-upload:focus-within {
  color: var(--auth-nav);
  outline: 0;
}

.user-avatar-upload.is-uploading {
  opacity: 0.58;
  pointer-events: none;
}

.user-toggle-card {
  color: var(--auth-nav);
}

.user-edit-button {
  min-width: 58px;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12px;
}

.user-card h2 {
  margin: 0;
  color: var(--auth-ink);
  font-size: 24px;
  line-height: 1.2;
}

.user-card small {
  display: block;
  margin-top: 5px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 850;
}

.user-card-meta {
  display: grid;
  gap: 8px;
  color: #41536b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.42;
}

.user-badges {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.user-badge {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.user-badge.admin {
  color: var(--auth-nav);
  background: #eeeaff;
}

.user-badge.vip {
  color: #7a4a00;
  background: #fff0c9;
}

.user-badge.staff {
  color: #127079;
  background: #e4fbfc;
}

.user-badge.active {
  color: #19764f;
  background: #e5f8ef;
}

.user-badge.disabled {
  color: #a66a00;
  background: #fff3d7;
}

.user-modal {
  width: min(720px, calc(100vw - 32px));
  border: 0;
  border-radius: 26px;
  padding: 0;
  color: var(--auth-ink);
  background: #fff;
  box-shadow: 0 30px 86px rgba(30, 42, 82, 0.24);
}

.user-modal::backdrop {
  background: rgba(20, 28, 45, 0.28);
  backdrop-filter: blur(4px);
}

.user-form {
  padding: 24px;
}

.user-modal-head,
.user-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-modal-head strong {
  font-size: 22px;
  line-height: 1.2;
}

.user-form-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.user-form label.wide {
  grid-column: 1 / -1;
}

.user-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.user-form textarea {
  min-height: 88px;
  resize: vertical;
}

.password-input-shell {
  position: relative;
  display: block;
}

.password-input-shell input {
  padding-right: 48px;
}

.password-eye-button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--auth-muted);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-eye-button:hover,
.password-eye-button.is-visible {
  color: var(--auth-nav);
  background: #f3f0ff;
}

.password-eye-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-modal-foot {
  margin-top: 24px;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .login-brand-panel {
    min-height: 260px;
  }

  .users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-grid {
    --users-grid-column-count: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-filter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .home-auth-chip {
    position: static;
    margin: 0 14px 10px auto;
    width: fit-content;
  }

  .login-shell {
    width: min(100vw - 24px, 540px);
    padding: 18px 0 34px;
  }

  .login-brand-panel {
    min-height: 230px;
    padding: 30px;
    border-radius: 24px;
  }

  .login-brand-panel::after {
    opacity: 0.45;
  }

  .login-brand-panel h1 {
    font-size: 32px;
  }

  .users-header {
    padding: 18px;
    display: grid;
  }

  .users-header-actions {
    justify-content: flex-start;
  }

  .users-workspace {
    width: min(100vw - 24px, 620px);
    padding-top: 10px;
  }

  .users-summary,
  .users-grid,
  .users-filter,
  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .users-grid {
    --users-grid-column-count: 1;
  }

  .users-stat {
    min-height: 92px;
  }

  .user-card-head {
    grid-template-columns: 58px minmax(0, 1fr) 66px;
    gap: 8px;
  }

  .user-avatar-upload {
    width: 58px;
  }

  .user-avatar-frame {
    width: 56px;
    height: 56px;
  }

  .user-card h2 {
    font-size: 20px;
  }

  .user-badges {
    justify-content: flex-start;
  }
}

/* Cosmic login screen */
.login-page {
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  color: #f5f4f8;
  background-color: #020306;
  background-image: url("assets/login/login-cosmic-background-20260715.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.login-page button,
.login-page input {
  font: inherit;
}

.login-page .login-shell {
  position: relative;
  z-index: 1;
  width: min(1294px, calc(100vw - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 729fr) minmax(0, 518fr);
  align-items: center;
  gap: 48px;
}

.login-page .login-brand-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 600px;
  padding: 46px;
  border: 1px solid rgba(250, 251, 255, 0.72);
  border-radius: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: auto;
  color: #f7f7f9;
  background: rgba(235, 238, 246, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 92px rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(255, 255, 255, 0.09),
    0 30px 76px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(6px) saturate(110%) brightness(102%);
  -webkit-backdrop-filter: blur(6px) saturate(110%) brightness(102%);
}

.login-page .login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/login/login-ring-user-20260715-transparent.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.login-page .login-brand-panel::after {
  content: none;
}

.login-page .login-brand-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  transform: translateY(15px);
}

.login-page .login-brand-panel h1 {
  width: auto;
  margin: 0;
  color: #f8f8fa;
  font-size: clamp(46px, 3.72vw, 62px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.login-page .login-brand-panel p {
  margin: 24px 0 0;
  color: rgba(231, 230, 236, 0.9);
  font-size: clamp(20px, 1.72vw, 28px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.login-page .login-card {
  width: 100%;
  height: 546px;
  padding: 43px 38px 38px;
  border: 1px solid rgba(250, 251, 255, 0.72);
  border-radius: 36px;
  color: #f3f2f6;
  background: rgba(235, 238, 246, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 92px rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(255, 255, 255, 0.09),
    0 30px 76px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(6px) saturate(110%) brightness(102%);
  -webkit-backdrop-filter: blur(6px) saturate(110%) brightness(102%);
}

.login-page .login-card h2 {
  margin: 0;
  color: #f8f7fa;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.login-page .login-card > p {
  margin: 9px 0 0;
  color: rgba(220, 218, 226, 0.9);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
}

.login-page .login-form {
  margin-top: 37px;
  display: block;
}

.login-page .login-fields {
  display: grid;
  gap: 26px;
}

.login-page .login-form label {
  display: grid;
  gap: 10px;
  color: #f0eef4;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

.login-page .login-field-label {
  display: block;
}

.login-page .login-input-shell {
  position: relative;
  min-height: 54px;
  border: 1px solid rgba(185, 184, 194, 0.62);
  border-radius: 13px;
  display: flex;
  align-items: center;
  color: rgba(246, 245, 250, 0.92);
  background: rgba(57, 58, 67, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 7px 18px rgba(0, 0, 0, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-page .login-input-shell:focus-within {
  border-color: rgba(205, 190, 244, 0.9);
  background: rgba(62, 62, 73, 0.88);
  box-shadow: 0 0 0 3px rgba(132, 100, 190, 0.2);
}

.login-page .login-input-shell > i {
  position: absolute;
  left: 18px;
  z-index: 1;
  color: rgba(246, 245, 250, 0.88);
  font-size: 23px;
  line-height: 1;
  pointer-events: none;
}

.login-page .login-form .login-input-shell input {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px 10px 55px;
  color: #f7f7f9;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 450;
  outline: 0;
  caret-color: #ffffff;
}

.login-page .login-form .login-password-shell input {
  padding-right: 52px;
}

.login-page .login-form input:-webkit-autofill,
.login-page .login-form input:-webkit-autofill:hover,
.login-page .login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f7f7f9;
  caret-color: #ffffff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px rgba(57, 58, 67, 0.96) inset;
}

.login-page .login-password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(239, 237, 244, 0.9);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.login-page .login-password-toggle:hover,
.login-page .login-password-toggle:focus-visible,
.login-page .login-password-toggle[aria-pressed="true"] {
  color: #ffffff;
  background: rgba(129, 99, 183, 0.28);
  outline: 0;
}

.login-page .login-password-toggle i {
  font-size: 23px;
  line-height: 1;
}

.login-page .login-form .login-remember {
  width: fit-content;
  margin-top: 28px;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: rgba(238, 236, 242, 0.92);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
}

.login-page .login-remember input {
  width: 21px;
  height: 21px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  accent-color: #7560b2;
  cursor: pointer;
}

.login-page .login-error {
  min-height: 0;
  margin: 10px 0 0;
  color: #ffb8bd;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.login-page .login-error:empty {
  display: none;
}

.login-page .login-submit {
  width: 100%;
  min-height: 67px;
  margin-top: 28px;
  border: 1px solid rgba(223, 213, 247, 0.56);
  border-radius: 15px;
  padding: 12px 20px;
  color: #f8f7fa;
  background-color: #493a69;
  background-image: linear-gradient(90deg, #15151d 0%, #252033 48%, #5d4a88 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 26px rgba(25, 16, 43, 0.38);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.login-page .login-submit:hover,
.login-page .login-submit:focus-visible {
  border-color: rgba(236, 228, 255, 0.86);
  background-color: #5d4a88;
  background-image: linear-gradient(90deg, #1c1a25 0%, #302741 48%, #71599f 100%);
  outline: 0;
  transform: translateY(-1px);
}

.login-page .login-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

@media (max-width: 1100px) {
  .login-page {
    background-position: 38% center;
  }

  .login-page .login-shell {
    width: min(720px, calc(100vw - 40px));
    min-height: auto;
    padding: 42px 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .login-page .login-brand-panel {
    height: 270px;
    min-height: 0;
    border-radius: 32px;
  }

  .login-page .login-brand-panel::before {
    background-size: contain;
  }

  .login-page .login-card {
    height: auto;
    min-height: 546px;
  }
}

@media (max-width: 720px) {
  .login-page {
    background-attachment: scroll;
    background-position: 35% center;
  }

  .login-page .login-shell {
    width: min(100vw - 24px, 540px);
    padding: 18px 0 28px;
    gap: 14px;
  }

  .login-page .login-brand-panel {
    height: 202px;
    min-height: 0;
    padding: 26px;
    border-radius: 26px;
  }

  .login-page .login-brand-panel h1 {
    font-size: clamp(28px, 8.5vw, 40px);
    white-space: normal;
  }

  .login-page .login-brand-panel p {
    margin-top: 15px;
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .login-page .login-brand-copy {
    transform: none;
  }

  .login-page .login-card {
    min-height: 0;
    padding: 27px 22px 24px;
    border-radius: 26px;
  }

  .login-page .login-card h2 {
    font-size: 29px;
  }

  .login-page .login-card > p {
    font-size: 15px;
  }

  .login-page .login-form {
    margin-top: 26px;
  }

  .login-page .login-fields {
    gap: 20px;
  }

  .login-page .login-form label {
    font-size: 14px;
  }

  .login-page .login-remember {
    margin-top: 22px;
  }

  .login-page .login-submit {
    min-height: 56px;
    margin-top: 22px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page *,
  .login-page *::before,
  .login-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
