:root {
  color-scheme: light;
  --blue: #2563eb;
  --green: #22c55e;
  --muted: #777;
  --page: #f4f7ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page);
  color: #080808;
}

.wrapper {
  width: 100%;
  max-width: 430px;
  padding: 15px;
}

.logo { text-align: center; }

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  border-radius: 50%;
  background: var(--blue);
}

.logo-icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.logo h1 {
  margin-top: 8px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.15;
}

.logo p {
  color: var(--muted);
  font-size: 13px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.step {
  color: #aaa;
  font-size: 13px;
  text-align: center;
}

.step span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
}

.step.active { color: var(--blue); }
.step.active span { background: var(--blue); }

.progress {
  width: 70px;
  height: 3px;
  margin: 0 10px;
  border-radius: 10px;
  background: var(--blue);
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .25s ease;
}

.progress.complete span { width: 100%; }

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.slides {
  display: flex;
  transform: translateX(0);
  transition: transform .6s ease;
}

.slide { min-width: 100%; }

.slide img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #003bff;
  cursor: pointer;
}

.dot.active {
  width: 15px;
  border-radius: 10px;
  background: #fff;
}

.card {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.card h2 {
  font-size: 22px;
  text-align: center;
}

.sub {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.input-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.input-box input {
  width: 100%;
  margin-left: 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
}

.input-box.focused {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15), 0 8px 20px rgba(37, 99, 235, .18);
}

.input-box.success {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18), 0 8px 20px rgba(34, 197, 94, .18);
}

.check-icon {
  display: none;
  color: var(--blue);
  font-size: 18px;
}

.input-box.success .check-icon { display: block; }

.primary-btn,
.back-btn {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  transition: .25s;
}

.primary-btn {
  background: #c7d2fe;
  color: #fff;
  cursor: not-allowed;
}

.primary-btn.active {
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
}

.back-btn {
  margin-top: 10px;
  background: #eef2ff;
  color: var(--blue);
  cursor: pointer;
}

.register-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: .25s;
}

.register-btn:hover { background: #16a34a; }

.info {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  background: #eff6ff;
  font-size: 13px;
}

.info svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: var(--blue);
}

.demo-note {
  margin-top: 10px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.mpin-card { min-height: 307px; }
.success-message { color: #165f32; background: #ecfdf3; }
.success-message svg { fill: #22a45d; }

.pin-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pin-digit {
  width: 100%;
  height: 52px;
  border: 1px solid #dbe0e8;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  transition: .2s;
}

.pin-digit:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.pin-grid.complete .pin-digit {
  border-color: var(--blue);
  background: #f8faff;
}

.pin-grid.mismatch .pin-digit {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .1);
}

.form-status {
  min-height: 18px;
  margin: -4px 0 9px;
  color: #dc2626;
  font-size: 12px;
  text-align: center;
}

.form-status.success { color: #16803f; }

[hidden] { display: none !important; }

.telegram-float {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #0ea5e9);
  box-shadow: 0 6px 15px rgba(0, 136, 204, .4);
  color: #fff;
  text-decoration: none;
  transition: .3s;
}

.telegram-float svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.telegram-float:hover { transform: scale(1.1); }

.telegram-float::before {
  position: absolute;
  z-index: -1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 136, 204, .5);
  content: "";
  animation: pulse 1.2s infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  60%, 100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  body { align-items: flex-start; }
  .wrapper { padding: 10px 15px 24px; }
  .progress { width: 50px; }
  .pin-grid { gap: 6px; }
  .pin-digit { height: 46px; border-radius: 9px; font-size: 19px; }
}

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