:root {
  --color-bg-1: #05070d;
  --color-bg-2: #0b1220;
  --color-primary: #2f9bff;
  --color-primary-2: #6dc6ff;
  --color-surface: rgba(16, 24, 40, 0.82);
  --color-border: rgba(90, 170, 255, 0.22);
  --color-text: #eaf2ff;
  --color-text-muted: #90a4c4;
  --color-error: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg-1);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  isolation: isolate;
}

/* Фоновая мягкая анимация из размытых синих пятен */
.app::before,
.app::after {
  content: '';
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  z-index: -1;
  pointer-events: none;
}

.app::before {
  top: -20vmax;
  left: -15vmax;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  animation: floatA 16s ease-in-out infinite;
}

.app::after {
  bottom: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle, var(--color-primary-2) 0%, transparent 70%);
  animation: floatB 18s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 8vmax) scale(1.1); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vmax, -6vmax) scale(1.15); }
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(.16, 1, .3, 1), transform 0.55s cubic-bezier(.16, 1, .3, 1);
}

.screen.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(47, 155, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.welcome-stack {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 22px 24px;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-card {
  padding: 36px 28px;
}

.avatar {
  display: block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #17233d, #0b1220);
  border: 1px solid var(--color-border);
  box-shadow: 0 0 0 5px rgba(47, 155, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: popIn 0.7s cubic-bezier(.34, 1.56, .64, 1) both;
}

.shop-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary-2);
  animation: fadeInUp 0.7s 0.1s cubic-bezier(.16, 1, .3, 1) both;
}

.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #ffe58a 0%, #ffc93c 55%, #ffb300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandEnter 0.9s 0.1s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes brandEnter {
  0% { opacity: 0; transform: scale(0.82) translateY(14px); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.stars {
  color: var(--color-primary-2);
  font-size: 16px;
  letter-spacing: 3px;
  margin: 0;
  text-shadow: 0 0 12px rgba(109, 198, 255, 0.6);
  animation: fadeInUp 0.7s 0.2s cubic-bezier(.16, 1, .3, 1) both;
}

h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  animation: fadeInUp 0.7s 0.22s cubic-bezier(.16, 1, .3, 1) both;
}

p {
  margin: 0 0 26px;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-size: 15px;
  animation: fadeInUp 0.7s 0.32s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.field-label {
  display: block;
  text-align: left;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.field-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  margin-bottom: 20px;
  background: rgba(6, 10, 20, 0.55);
  color: var(--color-text);
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field-input::placeholder {
  color: #55688c;
}

.field-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(47, 155, 255, 0.15);
}

.btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  animation: fadeInUp 0.7s 0.42s cubic-bezier(.16, 1, .3, 1) both;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-2), var(--color-primary));
  color: #051220;
  box-shadow: 0 10px 30px rgba(47, 155, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 38px rgba(47, 155, 255, 0.5);
}

.error-text {
  color: var(--color-error);
  font-size: 14px;
  margin: -10px 0 18px;
  text-align: left;
}

.checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-2), var(--color-primary));
  color: #051220;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 0 8px rgba(47, 155, 255, 0.12), 0 10px 30px rgba(47, 155, 255, 0.4);
  animation: popIn 0.6s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
