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

:root {
  --page-bg: #0b0e11;
  --card-bg: #1c1c1e;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.52);
  --text-mute: rgba(255, 255, 255, 0.32);
  --input-bg: #2c2c2e;
  --input-border: rgba(255, 255, 255, 0.1);
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #0b0e11;
  --btn-primary-hover: #ebebed;
  --btn-disabled-bg: rgba(255, 255, 255, 0.12);
  --btn-disabled-text: rgba(255, 255, 255, 0.42);
  --link-color: #64b5ff;
  --focus-ring: rgba(10, 132, 255, 0.32);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --card-radius: 28px;
}

html, body {
  min-height: 100%;
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.file-protocol-warn {
  position: relative;
  z-index: 50;
  margin: 0;
  padding: 12px 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  background: rgba(180, 40, 50, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.file-protocol-warn code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.login-mode-banner {
  position: relative;
  z-index: 40;
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.login-mode-banner--quiet {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(61, 214, 198, 0.12);
}

.login-mode-banner--secure {
  color: #fff;
  background: rgba(255, 107, 138, 0.22);
}

/* Тёмный фон с повторяющимся паттерном (как на референсе) */
.max-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--page-bg);
  background-image: url('images/page-pattern.png');
  background-repeat: repeat;
  background-size: 420px auto;
  background-position: 0 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px min(24px, 4vw) 32px;
}

.max-container {
  position: relative;
  width: 100%;
  max-width: min(560px, calc(100vw - 24px));
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  padding: clamp(32px, 5vw, 44px) clamp(28px, 4.5vw, 40px) clamp(30px, 4.5vw, 40px);
  text-align: center;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.max-container #step1,
.max-container #step2,
.max-container #stepPwd,
.max-container #stepDone {
  position: relative;
  z-index: 1;
}

#step1 {
  padding-top: 4px;
}

.card-help {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0.85;
}

.card-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0.88;
}

.card-back:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

#step2,
#stepPwd {
  padding-top: 8px;
}

.card-help:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.otp-screen-title {
  margin-top: 2px;
  margin-bottom: 10px !important;
}

p.otp-phone-line {
  font-size: clamp(1rem, 2.8vw, 1.125rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 12px !important;
}

p.otp-hint {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 22px !important;
  max-width: 34rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.otp-send-status {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px !important;
  text-align: center;
  color: var(--text-secondary);
}

.otp-send-status.is-error {
  color: #ff8a80;
}

.otp-send-status.is-pending {
  color: rgba(100, 181, 255, 0.9);
}

p.otp-timer-line {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 8px 0 6px !important;
}

.otp-timer-digits {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.otp-help-footer {
  margin: 18px 0 0 !important;
  font-size: 15px;
}

.otp-help-footer a {
  color: #ff8a8a;
  font-weight: 500;
  text-decoration: none;
}

.otp-help-footer a:hover {
  text-decoration: underline;
}

.pwd-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 8px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.pwd-title {
  margin-bottom: 8px !important;
}

p.pwd-subtitle {
  margin-bottom: 20px !important;
}

.pwd-input {
  margin-bottom: 16px !important;
  text-align: left;
}

.pwd-error-banner {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #ff8a80;
  background: rgba(255, 59, 48, 0.14);
  border: 1px solid rgba(255, 59, 48, 0.38);
}

.pwd-error-banner.visible {
  display: block;
}

.forgot-row {
  margin: 16px 0 0 !important;
  font-size: 15px;
}

.forgot-row a {
  color: var(--link-color);
  font-weight: 500;
  text-decoration: none;
}

.forgot-row a:hover {
  text-decoration: underline;
}

/* Шапка: иконка + max (Montserrat) */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(18px, 3.5vw, 26px);
}

.brand-row .logo {
  width: 48px;
  height: 48px;
  margin: 0;
}

.brand-row .logo .logo-img {
  width: 48px;
  height: 48px;
  border-radius: 22%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* Надпись max — PNG с прозрачным фоном */
.max-logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

#step1 .step-title {
  margin-bottom: 20px;
}

.step-title {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.step-subtitle {
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-secondary);
  margin: 0 0 22px !important;
}

.field-caption {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px !important;
}

.phone-field.field-full {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  background: var(--input-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.phone-field.field-full:focus-within {
  border-color: rgba(0, 122, 255, 0.35);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.phone-country {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
  cursor: default;
}

.phone-flag {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.phone-flag .flag-ru {
  display: block;
  width: 26px;
  height: 17px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-cc {
  letter-spacing: 0.02em;
}

.phone-chevron {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.38);
  margin-left: -2px;
}

.phone-chevron svg {
  display: block;
}

.phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 13px 14px 13px 2px;
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  outline: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.phone-input::placeholder {
  color: var(--text-mute);
}

/* Браузерное автозаполнение — без белого/голубого фона и без уменьшения шрифта */
@keyframes phone-autofill-start {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.phone-input:-webkit-autofill,
.phone-input:-webkit-autofill:hover,
.phone-input:-webkit-autofill:focus,
.phone-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  border-radius: inherit;
  animation-name: phone-autofill-start;
  animation-duration: 0.01s;
  transition: background-color 99999s ease-out 0s, color 99999s ease-out 0s;
}

.phone-input:-webkit-autofill::first-line {
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}

.max-container input.field-full:-webkit-autofill,
.max-container input.field-full:-webkit-autofill:hover,
.max-container input.field-full:-webkit-autofill:focus,
.max-container input.field-full:-webkit-autofill:active,
.otp-cell:-webkit-autofill,
.otp-cell:-webkit-autofill:hover,
.otp-cell:-webkit-autofill:focus,
.otp-cell:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  font-family: inherit !important;
  font-size: 17px !important;
  line-height: 22px !important;
  box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  border-radius: inherit;
  transition: background-color 99999s ease-out 0s;
}

.max-container input.field-full {
  width: 100%;
  padding: 14px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 17px;
  line-height: 20px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.max-container input.field-full::placeholder {
  color: var(--text-mute);
}

.max-container input.field-full:focus {
  border-color: rgba(0, 122, 255, 0.35);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.otp-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: nowrap;
}

.max-container .otp-row input.otp-cell {
  width: 40px;
  height: 48px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.max-container .otp-row input.otp-cell:focus {
  border-color: rgba(0, 122, 255, 0.45);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.resend-row {
  margin: 0 0 14px !important;
}

.link-resend {
  background: none;
  border: none;
  color: var(--link-color);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.link-resend:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--text-mute);
}

.link-resend:not(:disabled):hover {
  text-decoration: underline;
}

.max-container .btn-max {
  width: 100%;
  padding: 15px 14px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s, color 0.15s, opacity 0.15s;
}

.max-container .btn-max:not(:disabled) {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.max-container .btn-max:not(:disabled):hover {
  background-color: var(--btn-primary-hover);
}

.max-container .btn-max:not(:disabled):active {
  background-color: #e0e0e4;
  transform: scale(0.99);
}

.max-container .btn-max:disabled {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.38);
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.max-container .btn-max[data-loading='1'] {
  cursor: wait;
  opacity: 0.85;
}

.link-back {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: transparent !important;
  color: var(--link-color) !important;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.link-back:hover {
  text-decoration: underline;
  background: transparent !important;
}

.legal-footer {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  margin: 28px 0 0 !important;
  text-align: center;
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.max-container p {
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2c2c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error-toast {
  border-color: rgba(255, 120, 130, 0.5);
}

.toast.success-toast {
  border-color: rgba(130, 220, 150, 0.45);
}

.bridge-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 8, 12, 0.62);
  backdrop-filter: blur(6px);
}

.bridge-overlay-card {
  max-width: 320px;
  width: 100%;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.bridge-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: bridge-spin 0.75s linear infinite;
}

@keyframes bridge-spin {
  to {
    transform: rotate(360deg);
  }
}

.bridge-overlay-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 !important;
}

/* ===== MAX Glass UI (тест) — откат: body без ui-max-glass + style.classic.css ===== */
.ui-max-glass {
  --page-bg: #05070c;
  --card-glass: rgba(32, 34, 42, 0.55);
  --card-border: rgba(255, 255, 255, 0.11);
  --glow-cyan: rgba(46, 196, 255, 0.42);
  --glow-purple: rgba(168, 85, 247, 0.38);
  --btn-disabled-bg: rgba(58, 50, 78, 0.92);
  --btn-disabled-text: rgba(255, 255, 255, 0.42);
  --link-color: #5eb3ff;
}

.ui-max-glass .max-bg {
  background-color: var(--page-bg);
  background-image: url('images/page-pattern.png');
  background-size: 400px auto;
}

.ui-max-glass .max-container {
  max-width: min(440px, calc(100vw - 32px));
  background: var(--card-glass);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 40px 32px 32px;
}

.ui-max-glass .max-container::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse 90% 70% at 12% -8%, var(--glow-cyan), transparent 58%),
    radial-gradient(ellipse 75% 65% at 88% -5%, var(--glow-purple), transparent 55%),
    linear-gradient(180deg, rgba(80, 140, 255, 0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: max-glass-shimmer 8s ease-in-out infinite alternate;
}

.ui-max-glass .max-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes max-glass-shimmer {
  0% {
    opacity: 0.88;
    filter: hue-rotate(0deg);
  }
  100% {
    opacity: 1;
    filter: hue-rotate(12deg);
  }
}

.ui-max-glass .card-lang {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.ui-max-glass .card-lang:hover {
  opacity: 0.92;
}

.ui-max-glass .card-lang-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.ui-max-glass #step1 .card-help {
  display: none;
}

.ui-max-glass .brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 clamp(22px, 4vw, 28px);
}

.ui-max-glass .brand-lockup--compact {
  margin-bottom: 18px;
}

.ui-max-glass .brand-lockup .logo-img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(46, 196, 255, 0.25));
  -webkit-user-drag: none;
}

.ui-max-glass .brand-lockup--compact .logo-img {
  width: 44px;
  height: 44px;
}

.ui-max-glass .brand-lockup .max-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
}

.ui-max-glass .brand-lockup--compact .max-logo-img {
  height: 36px;
}

.ui-max-glass .step-title--hero {
  font-size: clamp(1.35rem, 4.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.ui-max-glass #step1 .step-title--hero {
  margin-bottom: 20px;
}

.ui-max-glass .phone-field.field-full {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.ui-max-glass .phone-country {
  padding-right: 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}

.ui-max-glass .phone-chevron {
  display: none !important;
}

.ui-max-glass .phone-input {
  color-scheme: dark;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}

.ui-max-glass .phone-field .phone-input:-webkit-autofill,
.ui-max-glass .phone-field .phone-input:-webkit-autofill:hover,
.ui-max-glass .phone-field .phone-input:-webkit-autofill:focus,
.ui-max-glass .phone-field .phone-input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.32) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.32) inset !important;
  background-color: transparent !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}

.ui-max-glass .phone-field .phone-input:-webkit-autofill::first-line {
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}

@supports (-webkit-appearance: none) {
  .ui-max-glass .phone-field:has(.phone-input:-webkit-autofill) {
    background: rgba(0, 0, 0, 0.32);
  }
}

.ui-max-glass .max-container .otp-row input.otp-cell {
  width: 44px;
  height: 52px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.1);
  font-size: 22px;
}

.ui-max-glass .max-container .otp-row input.otp-cell:focus {
  border-color: rgba(46, 196, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 196, 255, 0.18);
}

.ui-max-glass .otp-subtitle-line {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 24px !important;
  max-width: 22rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ui-max-glass .otp-phone-inline {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.ui-max-glass .link-inline {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  color: var(--link-color);
  cursor: pointer;
  text-decoration: none;
}

.ui-max-glass .link-inline:hover {
  text-decoration: underline;
}

.ui-max-glass .max-container .btn-max:not(:disabled) {
  background: #ffffff;
  color: #0a0c10;
}

.ui-max-glass .max-container .btn-max:disabled {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-text);
}

.ui-max-glass .btn-max--secondary {
  margin-top: 8px;
}

.ui-max-glass .btn-max--secondary:not(:disabled) {
  background: rgba(72, 62, 95, 0.95);
  color: rgba(255, 255, 255, 0.92);
}

.ui-max-glass .btn-max--secondary:not(:disabled):hover {
  background: rgba(88, 76, 112, 0.98);
}

.ui-max-glass .btn-max--secondary:disabled {
  background: rgba(48, 42, 62, 0.85);
  color: rgba(255, 255, 255, 0.35);
}

.ui-max-glass .otp-timer-line {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px !important;
}

.ui-max-glass .otp-help-footer a,
.ui-max-glass .footer-links a,
.ui-max-glass .forgot-row a {
  color: var(--link-color);
}

.ui-max-glass .footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.ui-max-glass .footer-links a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.ui-max-glass .footer-links a:hover {
  text-decoration: underline;
}

.ui-max-glass .legal-footer {
  margin-top: 22px !important;
  color: rgba(255, 255, 255, 0.38);
}

.ui-max-glass .legal-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.ui-max-glass .card-back {
  top: 14px;
  left: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.ui-max-glass #step2 .card-help,
.ui-max-glass #stepPwd .card-help {
  display: none;
}

.ui-max-glass .bridge-overlay-card {
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ui-max-glass .toast {
  background: rgba(40, 42, 50, 0.92);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.1);
}
