:root {
  --bg-1: #22105f;
  --bg-2: #3157e8;
  --bg-3: #7c3aed;
  --surface: #ffffff;
  --surface-soft: #f7f8ff;
  --text: #18213a;
  --muted: #65708a;
  --line: #e8ecf7;
  --primary: #6d5dfc;
  --primary-dark: #4f46e5;
  --primary-soft: #eeeaff;
  --accent: #38bdf8;
  --accent-pink: #f472b6;
  --success: #12b981;
  --success-soft: #eafbf4;
  --warning: #f59e0b;
  --warning-soft: #fff7e6;
  --danger: #ef4444;
  --danger-soft: #fff0f2;
  --shadow: 0 30px 90px rgba(17, 24, 64, 0.28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-1);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 114, 182, 0.33), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(56, 189, 248, 0.32), transparent 30%),
    radial-gradient(circle at 58% 86%, rgba(167, 139, 250, 0.30), transparent 34%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-3) 48%, var(--bg-2) 100%);
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
  isolation: isolate;
}

.page::before,
.page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}

.page::before {
  left: -88px;
  top: 12%;
}

.page::after {
  right: -96px;
  bottom: 8%;
  width: 340px;
  height: 340px;
  animation-delay: -3s;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.72) 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(255,255,255,0.42) 0 1.5px, transparent 2px);
  background-size: 120px 120px, 86px 86px;
  background-position: 18px 28px, 52px 60px;
  animation: drift 18s linear infinite;
}

.shell {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: stretch;
  animation: rise 0.58s ease-out both;
}

.brand-panel,
.card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  min-height: 560px;
  padding: 34px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255,255,255,0.04));
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.logo-box {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 36px rgba(24, 33, 58, 0.18);
  overflow: hidden;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-fallback {
  display: none;
  font-weight: 900;
  letter-spacing: -0.08em;
  font-size: 25px;
}

.brand-name {
  display: grid;
  gap: 2px;
}

.brand-name strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand-name span {
  font-size: 13px;
  opacity: 0.82;
}

.brand-copy {
  position: relative;
  z-index: 1;
  margin-top: 62px;
  max-width: 420px;
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8df7c6;
  box-shadow: 0 0 0 7px rgba(141, 247, 198, 0.12);
}

.brand-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.brand-copy p {
  margin: 0;
  max-width: 390px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.trust-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
}

.trust-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.illustration {
  position: absolute;
  right: 26px;
  bottom: 28px;
  z-index: 1;
  width: 158px;
  height: 158px;
  border-radius: 46px;
  background: linear-gradient(145deg, rgba(255,255,255,0.34), rgba(255,255,255,0.10));
  border: 1px solid rgba(255,255,255,0.24);
  display: grid;
  place-items: center;
  animation: float 5.8s ease-in-out infinite;
}

.illustration svg {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 16px 22px rgba(24, 33, 58, 0.18));
}

.card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.card-inner {
  padding: clamp(28px, 4vw, 46px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  color: var(--text);
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.status-visual {
  width: 98px;
  height: 98px;
  margin: 34px auto 24px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: 0 18px 42px rgba(109, 93, 252, 0.18);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.status-visual.success {
  background: var(--success-soft);
  color: var(--success);
  animation: pop 0.42s ease-out both;
}

.status-visual.error {
  background: var(--danger-soft);
  color: var(--danger);
  animation: shake 0.38s ease-in-out both;
}

.status-visual.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.spinner-ring {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 5px solid rgba(109, 93, 252, 0.18);
  border-top-color: var(--primary);
  animation: spin 0.86s linear infinite;
}

.checkmark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  position: relative;
  display: block;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 20px;
  width: 22px;
  height: 12px;
  border-left: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
  border-radius: 2px;
  transform: rotate(-45deg) scale(0.9);
  transform-origin: center;
  animation: check 0.46s ease-out both;
}

.symbol {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.status-box {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.status-box.success {
  background: var(--success-soft);
  border-color: rgba(18, 185, 129, 0.20);
}

.status-box.error {
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.20);
}

.status-box.warning {
  background: var(--warning-soft);
  border-color: rgba(245, 158, 11, 0.22);
}

.status-title {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.status-text {
  margin: 8px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.form-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #ffffff;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dce3f2;
  border-radius: var(--radius-sm);
  padding: 0 15px;
  color: var(--text);
  font-size: 15px;
  background: #fbfcff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus {
  border-color: rgba(109, 93, 252, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(109, 93, 252, 0.11);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #5b5ff7 52%, #2563eb 100%);
  box-shadow: 0 18px 34px rgba(91, 95, 247, 0.28);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(91, 95, 247, 0.34);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.66;
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  color: var(--primary-dark);
  background: var(--primary-soft);
  box-shadow: none;
}

.fallback-message {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: #f4f7ff;
  border: 1px solid #e5eaff;
  font-size: 14px;
  line-height: 1.62;
  text-align: center;
}

.security-note {
  margin-top: auto;
  padding-top: 28px;
}

.security-note-inner {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fbfcff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.security-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 14px;
}

.mini-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.hidden {
  display: none !important;
}

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

@keyframes check {
  from { opacity: 0; transform: rotate(-45deg) scale(0.45); }
  to { opacity: 1; transform: rotate(-45deg) scale(0.9); }
}

@keyframes pop {
  0% { transform: scale(0.9); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(36px, 24px, 0); }
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .brand-panel {
    min-height: auto;
  }

  .brand-copy {
    margin-top: 42px;
  }

  .illustration {
    display: none;
  }

  .card-inner {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 18px 12px;
  }

  .brand-panel,
  .card {
    border-radius: 28px;
  }

  .brand-panel {
    padding: 24px;
  }

  .brand-copy {
    margin-top: 32px;
  }

  .brand-copy h1 {
    font-size: 34px;
  }

  .card-inner {
    padding: 26px 20px;
  }

  .status-visual {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    margin-top: 28px;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.button-spinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
  border-color: rgba(255,255,255,.34);
  border-top-color: #fff;
}
.logo-box .logo-fallback-visible { display: block; }
