:root {
  --valliu-purple: #6d4aff;
  --valliu-purple-deep: #5436d4;
  --valliu-purple-soft: #efeaff;
  --valliu-blue: #39a8ff;
  --valliu-blue-soft: #e5f4ff;
  --ink: #1c1633;
  --ink-muted: #5c5678;
  --line: #ddd6f5;
  --surface: #ffffff;
  --danger: #d63b4a;
  --danger-soft: #ffe8eb;
  --warning-ink: #7a2f38;
  --warning-bg: #fff1f3;
  --warning-line: #f5c2c8;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(84, 54, 212, 0.14);
  --font-display: "Outfit", sans-serif;
  --font-body: "Nunito", sans-serif;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(57, 168, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 5%, rgba(109, 74, 255, 0.22), transparent 50%),
    linear-gradient(165deg, #f4f0ff 0%, #f7fbff 48%, #ebe4ff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(2px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}

.blob--a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: linear-gradient(135deg, #6d4aff 0%, #39a8ff 100%);
  opacity: 0.18;
}

.blob--b {
  width: 220px;
  height: 220px;
  bottom: 8%;
  left: -70px;
  background: linear-gradient(160deg, #39a8ff 0%, #6d4aff 90%);
  opacity: 0.16;
  animation-delay: -4s;
}

.blob--c {
  width: 140px;
  height: 140px;
  top: 42%;
  right: 8%;
  background: #6d4aff;
  opacity: 0.1;
  animation-delay: -7s;
}

.skyline {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transform: translateX(-50%);
  opacity: 0.12;
  height: 90px;
}

.skyline i {
  display: block;
  width: 28px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #39a8ff, #6d4aff);
  animation: pulse-bar 3.5s ease-in-out infinite;
}

.skyline i:nth-child(1) { height: 34px; background: #39a8ff; }
.skyline i:nth-child(2) { height: 58px; background: #ff5a4f; animation-delay: 0.2s; }
.skyline i:nth-child(3) { height: 46px; background: #ff9a3c; animation-delay: 0.4s; }
.skyline i:nth-child(4) { height: 72px; background: #6d4aff; animation-delay: 0.1s; }
.skyline i:nth-child(5) { height: 40px; background: #62d26f; animation-delay: 0.5s; }
.skyline i:nth-child(6) { height: 64px; background: #39a8ff; animation-delay: 0.3s; }
.skyline i:nth-child(7) { height: 50px; background: #1f8f4d; animation-delay: 0.6s; }

@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(18px) rotate(8deg); }
}

@keyframes pulse-bar {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

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

@keyframes float-logo {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.page {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100% - 1.75rem));
  margin: 0 auto;
  padding: 1.75rem 0 2.5rem;
}

.brand {
  text-align: center;
  margin-bottom: 1.5rem;
  animation: rise 0.7s ease both;
}

.brand__partner {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.brand__siva {
  width: min(168px, 52vw);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
  animation: float-logo 3.2s ease-in-out infinite alternate;
}

.brand__logo {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(109, 74, 255, 0.22));
}

.brand__tag {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.shell {
  background: var(--surface);
  border: 1px solid rgba(109, 74, 255, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.5rem;
  animation: rise 0.75s ease 0.08s both;
  position: relative;
  overflow: hidden;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #39a8ff, #6d4aff 55%, #ff5a4f);
}

.intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.intro__mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(109, 74, 255, 0.25);
}

.intro__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro__copy h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.intro__copy p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.form,
.success {
  display: grid;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .shell {
    padding: 1.65rem 1.75rem 1.85rem;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.88rem 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236D4AFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}

.field input::placeholder {
  color: #9a93b8;
  font-weight: 500;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--valliu-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.16);
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(214, 59, 74, 0.12);
}

.field__error {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}

.warning {
  margin: 0.15rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--warning-bg), #fff7f0);
  border: 1px solid var(--warning-line);
  color: var(--warning-ink);
}

.warning h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--danger);
}

.warning ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.confirm {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--valliu-purple-soft);
  border: 1px solid rgba(109, 74, 255, 0.15);
}

.switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.switch__track {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: #c8bfef;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(28, 22, 51, 0.18);
  transition: transform 0.25s ease;
}

.switch input:checked + .switch__track {
  background: linear-gradient(90deg, var(--valliu-blue), var(--valliu-purple));
}

.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(22px);
}

.switch input:focus-visible + .switch__track {
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.22);
}

.switch__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
  font-weight: 600;
}

.form-error {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

.submit {
  margin-top: 0.2rem;
  width: 100%;
  border: none;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--valliu-purple) 0%, var(--valliu-purple-deep) 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(109, 74, 255, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

.submit:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(109, 74, 255, 0.42);
}

.submit:active:not(:disabled) {
  transform: translateY(1px);
}

.submit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.submit--secondary {
  background: transparent;
  color: var(--valliu-purple-deep);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.submit--secondary:hover:not(:disabled) {
  background: var(--valliu-purple-soft);
  filter: none;
  box-shadow: none;
}

.success {
  text-align: center;
  padding: 0.5rem 0.25rem 0.25rem;
}

.success[hidden],
.form[hidden] {
  display: none;
}

.success__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(109, 74, 255, 0.28);
  animation: float-logo 2.8s ease-in-out infinite alternate;
}

.success h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--valliu-purple-deep);
}

.success p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
  font-weight: 600;
}

.footer {
  margin-top: 1.6rem;
  text-align: center;
  animation: rise 0.7s ease 0.18s both;
}

.footer__brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}

.footer__siva {
  width: 92px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.footer__valliu {
  width: 110px;
  height: auto;
}

.footer__divider {
  width: 1px;
  height: 28px;
  background: rgba(92, 86, 120, 0.25);
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 420px) {
  .intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro__mark {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
