/* PayHot authentication and merchant registration flow. */
.payhot-auth-page {
  --ink: #1d1d1d;
  --muted: #67768c;
  --shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
  --font-ui: "Inter", Arial, sans-serif;
  --font-title: "Onest", Arial, sans-serif;
  min-width: 320px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.92), transparent 22%),
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.62), transparent 18%),
    linear-gradient(180deg, #eef3f8 0%, #f0f4f8 100%);
  color: var(--ink);
  font-family: var(--font-ui);
}

@supports (min-height: 100svh) {
  .payhot-auth-page { min-height: 100svh; }
}

.payhot-auth-page *,
.payhot-auth-page *::before,
.payhot-auth-page *::after { box-sizing: border-box; }

.payhot-auth-page::before,
.payhot-auth-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(70px);
}

.payhot-auth-page::before { width: 420px; height: 420px; left: max(-180px, calc(50% - 760px)); top: -120px; background: rgba(253, 34, 38, 0.2); }
.payhot-auth-page::after { width: 500px; height: 500px; right: max(-210px, calc(50% - 790px)); bottom: -190px; background: rgba(236, 10, 70, 0.18); }

.payhot-auth-shell {
  width: min(100%, 1120px);
  min-width: 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 492px) minmax(360px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.payhot-auth-shell-register { grid-template-columns: minmax(520px, 650px) minmax(360px, 1fr); }

.payhot-auth-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(240, 246, 255, 0.58) 100%), #fff;
  box-shadow: var(--shadow);
}

.payhot-auth-card .auth-card-glow { position: absolute; pointer-events: none; border-radius: 9999px; background: rgba(253, 34, 38, 0.14); filter: blur(42px); }
.payhot-auth-card .auth-card-glow-a { width: 190px; height: 190px; right: -74px; top: 96px; }
.payhot-auth-card .auth-card-glow-b { width: 140px; height: 140px; left: -74px; bottom: 52px; opacity: 0.65; }

.payhot-auth-card .auth-card-topbar,
.payhot-auth-card .auth-copy,
.payhot-auth-card .auth-form,
.payhot-auth-card .auth-twofa-actions { position: relative; z-index: 1; }

.auth-card-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.auth-chip { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--muted); border: 1px solid rgba(46, 74, 105, 0.1); border-radius: 999px; background: rgba(255, 255, 255, 0.72); font-family: var(--font-title); font-size: 13px; font-weight: 700; }
.auth-logo-image-corner { width: 85px; height: 18px; object-fit: contain; }
.auth-overline { color: #fd2226; font-family: var(--font-title); font-size: 13px; font-weight: 700; line-height: 16px; text-transform: uppercase; letter-spacing: 2px; }
.auth-copy h1 { margin: 12px 0 0; color: #000; font-family: var(--font-title); font-size: 40px; line-height: 40px; font-weight: 500; letter-spacing: 0; }
.auth-subtitle-enhanced { max-width: 380px; margin: 14px 0 0; color: var(--muted); font-family: var(--font-ui); font-size: 15px; line-height: 21px; font-weight: 500; }
.auth-form-enhanced { display: grid; gap: 16px; margin-top: 30px; }

.payhot-auth-page .field { min-width: 0; display: grid; gap: 8px; margin: 0; }
.payhot-auth-page .field span { color: #1d1d1d; font-family: var(--font-title); font-size: 14px; line-height: 18px; font-weight: 600; }
.payhot-auth-page input,
.payhot-auth-page select { width: 100%; min-width: 0; height: 54px; padding: 0 18px; color: #1d1d1d; border: 1px solid rgba(46, 74, 105, 0.12); border-radius: 16px; outline: none; background: #fff; box-shadow: 0 0 0 rgba(0, 0, 0, 0); font-family: var(--font-ui); font-size: 15px; font-weight: 500; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; -webkit-appearance: none; appearance: none; }
.payhot-auth-page input::placeholder { color: #9aa5b3; }
.payhot-auth-page input:focus,
.payhot-auth-page select:focus { border-color: rgba(253, 34, 38, 0.45); box-shadow: 0 0 0 4px rgba(253, 34, 38, 0.09); }

.payhot-auth-page .primary-btn,
.payhot-auth-page .ghost-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 14px; font-family: var(--font-title); font-size: 13px; font-weight: 700; line-height: 16px; text-align: center; }
.payhot-auth-page .primary-btn { color: #fff; background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%); box-shadow: 0 18px 36px rgba(236, 10, 70, 0.22); }
.payhot-auth-page .primary-btn:disabled,
.payhot-auth-page .primary-btn[disabled] { cursor: default; opacity: 0.55; }
.payhot-auth-page .ghost-btn { color: #1d1d1d; border: 1px solid rgba(46, 74, 105, 0.12); background: rgba(255, 255, 255, 0.72); }
.payhot-auth-page .auth-submit-btn { width: 100%; margin-top: 4px; }

.auth-twofa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.auth-twofa-actions .ghost-btn { flex: 1 1 170px; }
.telegram-login-widget { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px; border: 1px solid rgba(46, 74, 105, 0.12); border-radius: 14px; background: rgba(255, 255, 255, 0.72); }
.payhot-auth-page .form-error,
.payhot-auth-page .form-success { padding: 12px 14px; border-radius: 14px; font-family: var(--font-ui); font-size: 13px; line-height: 18px; font-weight: 600; }
.payhot-auth-page .form-error { color: #fd2226; background: #fff0f1; }
.payhot-auth-page .form-success { color: #087a19; background: rgba(0, 213, 18, 0.12); }

.payhot-auth-aside { min-width: 0; min-height: 620px; position: relative; overflow: hidden; padding: 42px; border-radius: 32px; background: radial-gradient(circle at 75% 70%, rgba(253, 34, 38, 0.86) 0, rgba(253, 34, 38, 0.4) 18%, transparent 42%), linear-gradient(135deg, #100c0d 0%, #1d1d1d 48%, #40090d 100%); box-shadow: 0 24px 80px rgba(0, 8, 33, 0.15); }
.payhot-auth-aside::before { content: ""; position: absolute; width: 720px; height: 150px; left: 88px; bottom: 32px; opacity: 0.72; background: linear-gradient(180deg, #fd2226 0%, rgba(253, 34, 38, 0) 100%); filter: blur(24px); transform: rotate(132deg); transform-origin: 0 0; }
.payhot-auth-aside-logo { position: relative; z-index: 1; width: 92px; height: auto; }
.payhot-auth-aside-title { position: relative; z-index: 1; width: min(100%, 410px); margin-top: 108px; color: #fff; font-family: var(--font-title); font-size: 36px; line-height: 38px; font-weight: 500; letter-spacing: 0; }
.payhot-auth-aside-text { position: relative; z-index: 1; width: min(100%, 350px); margin-top: 24px; color: rgba(255, 255, 255, 0.82); font-family: var(--font-ui); font-size: 15px; line-height: 22px; font-weight: 500; }
.payhot-auth-orbit { position: absolute; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24); }
.payhot-auth-orbit-one { right: -86px; top: -54px; width: 260px; height: 260px; }
.payhot-auth-orbit-two { right: 96px; bottom: 82px; width: 104px; height: 104px; background: rgba(255, 255, 255, 0.06); }

.register-card { padding-bottom: 28px; }
.register-step-row { display: flex; gap: 8px; margin-bottom: 18px; }
.register-step { flex: 1 1 0; min-width: 0; padding: 10px 12px; color: var(--muted); border: 1px solid rgba(46, 74, 105, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.72); font-family: var(--font-title); font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; }
.register-step.active { color: #fff; border-color: transparent; background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%); }
.register-step.done { color: #1d1d1d; background: rgba(0, 213, 18, 0.12); }
.register-panel { display: grid; gap: 18px; }
.payhot-auth-page .section-title { color: #000; font-family: var(--font-title); font-size: 22px; line-height: 24px; font-weight: 500; }
.payhot-auth-page .section-subtitle { margin-top: 8px; color: var(--muted); font-family: var(--font-ui); font-size: 14px; line-height: 20px; font-weight: 500; }
.register-choice-grid,
.payhot-auth-page .filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.register-choice { min-width: 0; min-height: 116px; display: grid; align-content: start; gap: 10px; padding: 18px; color: #1d1d1d; border: 1px solid rgba(46, 74, 105, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.72); text-align: left; }
.register-choice strong { font-family: var(--font-title); font-size: 15px; line-height: 18px; font-weight: 700; }
.register-choice span { color: var(--muted); font-size: 13px; line-height: 18px; font-weight: 500; }
.register-choice.selected { border-color: rgba(253, 34, 38, 0.45); background: #fff0f1; box-shadow: inset 0 0 0 1px rgba(253, 34, 38, 0.16); }
.payhot-auth-page .field-span-2 { grid-column: span 2; }
.register-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 2px; }

@media (max-width: 1020px) {
  .payhot-auth-shell,
  .payhot-auth-shell-register { grid-template-columns: minmax(0, 620px); justify-content: center; }
  .payhot-auth-aside { display: none; }
}

@media (max-width: 680px) {
  .payhot-auth-page { align-items: flex-start; padding: 22px 14px; }
  .payhot-auth-card { padding: 22px; border-radius: 24px; }
  .auth-card-topbar { margin-bottom: 34px; }
  .auth-copy h1 { font-size: 32px; line-height: 34px; }
  .register-choice-grid,
  .payhot-auth-page .filter-grid { grid-template-columns: 1fr; }
  .payhot-auth-page .field-span-2 { grid-column: auto; }
  .register-step-row,
  .register-actions,
  .auth-twofa-actions { flex-direction: column; }
  .register-step { text-align: left; }
  .payhot-auth-page .primary-btn,
  .payhot-auth-page .ghost-btn { width: 100%; }
}
