:root {
  --bg: #f9f6f0;
  --ink: #2d2a32;
  --muted: #6b7280;
  --coral: #ff7e53;
  --coral-dark: #e86c43;
  --teal: #74a892;
  --teal-soft: #a2d2c2;
  --peach: #ffa07a;
  --sand: #f5e6d3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Color orbs, matching the app background. */
.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}

.orb.teal {
  top: -12vmax;
  left: -12vmax;
  width: 48vmax;
  height: 48vmax;
  background: radial-gradient(circle, var(--teal-soft), var(--teal));
  animation: drift-a 14s ease-in-out infinite alternate;
}

.orb.peach {
  right: -14vmax;
  bottom: -10vmax;
  width: 52vmax;
  height: 52vmax;
  background: radial-gradient(circle, var(--peach), var(--coral));
  animation: drift-b 16s ease-in-out infinite alternate;
}

.orb.sand {
  left: -10vmax;
  bottom: 8vmax;
  width: 40vmax;
  height: 40vmax;
  background: var(--sand);
  animation: drift-a 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  to {
    transform: translate(4vmax, 3vmax);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-4vmax, -3vmax);
  }
}

/* Brand pill, top-left like the app header. */
.brand {
  position: absolute;
  top: 20px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(45, 42, 50, 0.06);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 360px;
  margin: 0 auto;
  padding: 96px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Shown once a link is confirmed. */
.badge {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(116, 168, 146, 0.35);
  animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.badge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 32px;
  padding: 16px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 8px 20px rgba(232, 108, 67, 0.3);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* The Synk logo turned white for the coral button. */
.button-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

button.button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Lighter "Continue to Synk" under the reset form. */
.button.secondary {
  margin-top: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 42, 50, 0.06);
  color: var(--coral-dark);
}

.button.secondary .button-logo {
  filter: none;
}

/* New password form on reset-password.html. */
.reset-form {
  width: 100%;
  max-width: 320px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reset-form .button {
  margin-top: 8px;
}

.field {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid transparent;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.field:focus {
  border-color: var(--coral);
}

.hint,
.note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.note {
  margin-top: 28px;
}

.form-error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e85d5d;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .badge {
    animation: none;
  }
}
