:root {
  --ink-0: rgba(246, 250, 255, 0.98);
  --ink-1: rgba(220, 232, 244, 0.82);
  --ink-2: rgba(182, 200, 216, 0.62);
  --teal: #8ce7ff;
  --amber: #ffd596;
  --radius-panel: 34px;
  --radius-input: 22px;
  --shadow-deep: 0 28px 84px rgba(0, 0, 0, 0.32);
  --panel-x: -152px;
  --panel-y: -48px;
  --panel-width: 620px;
  --panel-height: 752px;
  --panel-max-width: calc(100vw - 64px);
  --panel-max-height: calc(100vh - 40px);
  --bg-x: 50%;
  --bg-y: 82%;
  --glass-layer-opacity: 1;
  --glass-surface-bg: rgba(255, 255, 255, 0.015);
  --auth-card-bg: rgba(255, 255, 255, 0.02);
  --input-shell-bg: rgba(255, 255, 255, 0.012);
  --action-button-bg: rgba(255, 255, 255, 0.014);
  --glass-before-opacity: 0.3;
  --auth-card-before-opacity: 0.5;
  --input-shell-before-opacity: 0.28;
  --action-button-before-opacity: 0.34;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink-0);
  font-family: "Noto Sans SC", sans-serif;
  background-color: #050607;
  background-image: var(--login-bg-image);
  background-position: var(--bg-x) var(--bg-y);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-0);
}

.scene-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  justify-content: end;
  width: 100%;
  height: 100vh;
  padding: 48px clamp(32px, 8vw, 154px) 48px 24px;
}

.auth-column {
  display: flex;
  justify-content: flex-end;
  transform: translate3d(var(--panel-x), var(--panel-y), 0);
}

.glass-surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0 solid transparent;
  background: var(--glass-surface-bg);
  box-shadow: var(--shadow-deep);
  transform: translateZ(0);
}

.glass-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(110% 74% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06) 14%, rgba(255, 255, 255, 0.018) 34%, rgba(255, 255, 255, 0.018) 72%, rgba(255, 255, 255, 0.08));
  opacity: var(--glass-before-opacity);
  mix-blend-mode: screen;
}

.glass-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 8px 0 18px rgba(255, 119, 84, 0.05),
    inset -8px 0 18px rgba(98, 223, 255, 0.07);
}

.glass-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: var(--glass-layer-opacity);
  pointer-events: none;
}

.surface-content {
  position: relative;
  z-index: 3;
}

.auth-card {
  width: var(--panel-width);
  height: var(--panel-height);
  min-width: 380px;
  min-height: 420px;
  max-width: var(--panel-max-width);
  max-height: var(--panel-max-height);
  border-radius: var(--radius-panel);
  background: var(--auth-card-bg);
  box-shadow:
    0 40px 96px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-card::before {
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(255, 255, 255, 0.26), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.025) 34%, rgba(255, 255, 255, 0.018) 68%, rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, rgba(116, 226, 255, 0.06), transparent 18%, transparent 82%, rgba(255, 208, 150, 0.05));
  opacity: var(--auth-card-before-opacity);
}

.auth-card::after {
  border-color: rgba(223, 245, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    inset 20px 0 28px rgba(98, 223, 255, 0.05),
    inset -18px 0 24px rgba(255, 186, 130, 0.05),
    inset 0 18px 28px rgba(255, 255, 255, 0.04);
}

.auth-card__content {
  display: grid;
  gap: 22px;
  min-height: 100%;
  padding: 30px 30px 28px;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 4px 0 10px rgba(255, 126, 85, 0.12),
    inset -4px 0 10px rgba(98, 223, 255, 0.16);
}

.brand-mark__core {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.12) 38%, transparent 48%),
    conic-gradient(from 210deg, rgba(140, 231, 255, 0.94), rgba(255, 213, 150, 0.88), rgba(140, 231, 255, 0.94));
  box-shadow: 0 0 24px rgba(140, 231, 255, 0.26);
}

.brand-name,
.auth-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: -0.03em;
}

.brand-name {
  font-size: 1.42rem;
}

.brand-sub {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.auth-heading {
  display: grid;
  gap: 10px;
}

.mini-kicker {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-heading h2 {
  font-size: 2.78rem;
  line-height: 1;
}

.auth-heading p:last-child {
  margin: 0;
  color: var(--ink-1);
  line-height: 1.76;
}

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

.input-shell {
  border-radius: var(--radius-input);
  background: var(--input-shell-bg);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.input-shell::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06) 22%, rgba(255, 255, 255, 0.01) 54%, rgba(255, 255, 255, 0.035));
  opacity: var(--input-shell-before-opacity);
}

.input-shell::after {
  border-color: rgba(218, 241, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.input-shell__content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 18px;
}

.input-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.input-icon svg,
.action-button__icon svg {
  width: 100%;
  height: 100%;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  caret-color: rgba(246, 250, 255, 0.95);
}

.input-shell input::placeholder {
  color: rgba(208, 223, 236, 0.48);
}

.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus,
.input-shell input:-webkit-autofill:active {
  -webkit-text-fill-color: rgba(246, 250, 255, 0.98) !important;
  caret-color: rgba(246, 250, 255, 0.95);
  box-shadow: 0 0 0 1000px rgba(8, 14, 20, 0.16) inset !important;
  transition: background-color 9999s ease-out, color 9999s ease-out;
}

.input-shell input:autofill {
  color: rgba(246, 250, 255, 0.98);
  box-shadow: 0 0 0 1000px rgba(8, 14, 20, 0.16) inset;
}

.ghost-toggle {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.ghost-toggle:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.caps-hint {
  flex: 0 0 auto;
  min-width: 66px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(220, 232, 244, 0.5);
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
}

.caps-hint[hidden] {
  display: none;
}

.caps-hint.is-on {
  border-color: rgba(255, 213, 150, 0.48);
  color: rgba(255, 230, 186, 0.96);
  background: rgba(255, 213, 150, 0.12);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 8px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-1);
  font-size: 0.92rem;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: #bdefff;
}

.text-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  cursor: pointer;
}

.action-button {
  border-radius: 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease;
  background: var(--action-button-bg);
}

.action-button::before {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05) 28%, rgba(255, 255, 255, 0.02));
  opacity: var(--action-button-before-opacity);
}

.action-button::after {
  border-color: rgba(221, 244, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 6px 0 14px rgba(255, 132, 92, 0.05),
    inset -6px 0 14px rgba(98, 223, 255, 0.06);
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-button__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 66px;
  padding: 0 22px;
  font-size: 1.14rem;
  font-weight: 700;
}

.action-button__text {
  flex: 0 0 auto;
}

.action-button__icon {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.action-button.is-loading .action-button__text::after {
  content: " ...";
  animation: blink 900ms ease-in-out infinite;
}

.register-copy {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  text-align: center;
}

.register-link {
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 12;
  max-width: 420px;
  border-radius: 24px;
  animation: toast-in 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast__content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}

.toast__badge {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow: 0 0 18px rgba(140, 231, 255, 0.42);
}

.toast__content strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1rem;
}

.toast__content p {
  margin: 0;
  color: var(--ink-1);
  font-size: 0.9rem;
  line-height: 1.65;
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 22px;
}

.message-modal[hidden] {
  display: none;
}

.message-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.message-dialog {
  width: min(360px, calc(100vw - 32px));
  border-radius: 26px;
  background: rgba(10, 16, 22, 0.72);
}

.message-dialog__content {
  display: grid;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.message-dialog__content h3 {
  margin: 0;
  font-size: 1.2rem;
}

.message-dialog__content p {
  margin: 0;
  color: var(--ink-1);
  line-height: 1.7;
}

.message-button {
  height: 44px;
  border-radius: 999px;
  color: #071014;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  cursor: pointer;
}

.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}

.captcha-modal[hidden] {
  display: none;
}

.captcha-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.captcha-dialog {
  width: min(420px, calc(100vw - 32px));
  border-radius: 26px;
  background: rgba(10, 16, 22, 0.64);
}

.captcha-dialog__content {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.captcha-dialog__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.captcha-dialog__top h3 {
  margin: 0;
  font-size: 1.18rem;
}

.captcha-dialog__top p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.captcha-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.slider-captcha {
  display: grid;
  gap: 12px;
  width: min(312px, 100%);
  margin: 0 auto;
}

.captcha-canvas {
  position: relative;
  width: 100%;
  height: 136px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: var(--captcha-bg, linear-gradient(120deg, #e7f8ff, #ffdca8));
  background-position: var(--captcha-bg-position, center center);
  background-size: var(--captcha-bg-size, 100% 100%);
  background-repeat: no-repeat;
}

.slider-captcha.is-loading .captcha-canvas,
.slider-captcha.is-loading .captcha-track {
  opacity: 0.66;
  pointer-events: none;
}

.slider-captcha.is-loading .captcha-hint {
  color: rgba(255, 255, 255, 0.78);
}

.captcha-hole,
.captcha-piece {
  position: absolute;
  top: var(--captcha-y, 42px);
  width: var(--captcha-size, 42px);
  height: var(--captcha-size, 42px);
  clip-path: path("M 5 14 C 5 8 9 4 15 4 L 25 4 C 25 0 32 0 32 5 C 32 9 29 11 26 11 L 37 11 C 40 11 42 14 42 17 L 42 36 C 42 39 39 42 36 42 L 7 42 C 3 42 0 39 0 35 L 0 20 C 0 16 2 14 5 14 Z");
}

.captcha-hole {
  left: var(--captcha-target, 196px);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.12)),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 6px 7px 16px rgba(0, 0, 0, 0.46),
    inset -3px -4px 10px rgba(255, 255, 255, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  transform-origin: 50% 50%;
}

.captcha-hole--decoy {
  top: var(--captcha-decoy-top, var(--captcha-y, 42px));
  left: var(--captcha-decoy, 86px);
  transform: rotate(var(--captcha-decoy-rotate, -13deg));
  opacity: 0.76;
}

.captcha-hole--target {
  transform: rotate(var(--captcha-target-rotate, 0deg));
}

.captcha-piece {
  left: var(--captcha-piece, 12px);
  background: var(--captcha-bg, linear-gradient(120deg, #e7f8ff, #ffdca8));
  background-position: var(--captcha-piece-bg-position, var(--captcha-piece-bg-x, 0px) var(--captcha-piece-bg-y, 0px));
  background-size: var(--captcha-bg-size, 100% 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  transform: rotate(var(--captcha-piece-rotate, 0deg));
  transform-origin: 50% 50%;
}

.captcha-piece::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.32), transparent 28%);
  pointer-events: none;
}

.captcha-track {
  position: relative;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.captcha-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--captcha-progress, 0px);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(140, 231, 255, 0.22), rgba(255, 213, 150, 0.2));
}

.captcha-thumb {
  position: absolute;
  top: 4px;
  left: var(--captcha-thumb, 4px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px rgba(0, 0, 0, 0.2);
  cursor: grab;
  touch-action: none;
}

.captcha-thumb:active {
  cursor: grabbing;
}

.captcha-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 0.86rem;
  pointer-events: none;
}

.slider-captcha.is-passed .captcha-hint {
  color: rgba(168, 255, 214, 0.86);
}

.panel-tuner,
.panel-tuner-hotspot {
  position: fixed;
  left: 24px;
  bottom: 24px;
}

.panel-tuner {
  z-index: 50;
  display: none;
  color: #fff;
}

.panel-tuner.is-visible {
  display: block;
}

.panel-tuner-hotspot {
  z-index: 49;
  width: 58px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: default;
}

.panel-tuner__toggle,
.panel-tuner__btn,
.panel-tuner__copy,
.panel-tuner__reset,
.panel-tuner__mode,
.panel-tuner__range {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(12, 15, 18, 0.62);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 38px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.panel-tuner__toggle {
  width: 58px;
  height: 42px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.panel-tuner__panel {
  display: none;
  width: 286px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.panel-tuner.is-open .panel-tuner__panel {
  display: block;
}

.panel-tuner__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.panel-tuner__value {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-align: right;
}

.panel-tuner__modes,
.panel-tuner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.panel-tuner__modes {
  margin-bottom: 12px;
}

.panel-tuner__mode,
.panel-tuner__copy,
.panel-tuner__reset {
  height: 34px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}

.panel-tuner__mode.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.panel-tuner__pad {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-rows: repeat(3, 42px);
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-tuner__opacity {
  display: none;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-tuner[data-active-target="opacity"] .panel-tuner__pad {
  display: none;
}

.panel-tuner[data-active-target="opacity"] .panel-tuner__opacity {
  display: grid;
}

.panel-tuner__range {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  accent-color: #dff7ff;
}

.panel-tuner__btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 19px;
}

.panel-tuner__btn--up {
  grid-column: 2;
  grid-row: 1;
}

.panel-tuner__btn--left {
  grid-column: 1;
  grid-row: 2;
}

.panel-tuner__btn--right {
  grid-column: 3;
  grid-row: 2;
}

.panel-tuner__btn--down {
  grid-column: 2;
  grid-row: 3;
}

.panel-tuner__hint {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.5;
}

.panel-resize-handle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  cursor: nwse-resize;
  touch-action: none;
}

.panel-resize-handle::before,
.panel-resize-handle::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 13px;
  height: 13px;
  border-right: 2px solid rgba(255, 255, 255, 0.68);
  border-bottom: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 0 0 3px 0;
}

.panel-resize-handle::after {
  right: 13px;
  bottom: 13px;
  width: 7px;
  height: 7px;
  opacity: 0.68;
}

.panel-tuner.is-open ~ .page-shell .panel-resize-handle,
body.is-panel-tuner-open .panel-resize-handle {
  display: block;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 760px) {
  :root {
    --panel-x: 0px;
    --panel-y: 0px;
    --panel-max-width: calc(100vw - 32px);
    --panel-max-height: calc(100vh - 36px);
  }

  .page-shell {
    justify-content: center;
    padding: 18px 16px;
  }

  .auth-column {
    transform: none;
  }

  .auth-card {
    width: min(var(--panel-width), calc(100vw - 32px));
    height: min(var(--panel-height), calc(100vh - 36px));
    min-height: min(420px, calc(100vh - 36px));
  }

  .auth-card__content {
    height: 100%;
    overflow: auto;
    padding: 36px 28px 32px;
    scrollbar-width: none;
  }

  .auth-card__content::-webkit-scrollbar {
    display: none;
  }
}
