:root {
  --text: rgba(30, 18, 10, 0.9);
  --muted: rgba(30, 18, 10, 0.55);
  --petal-6: #e06e89;
  --petal-7: #ca5672;
  --petal-bg: rgba(224, 110, 137, 0.08);
  --shadow: 0 4px 16px rgba(30, 20, 10, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Space Grotesk",
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  background:
    radial-gradient(900px 540px at 8% 0%, rgba(250, 200, 220, 0.38), transparent 55%),
    radial-gradient(850px 500px at 88% 6%, rgba(200, 180, 240, 0.26), transparent 52%),
    radial-gradient(760px 460px at 50% 100%, rgba(255, 225, 195, 0.3), transparent 58%),
    linear-gradient(175deg, #fefaf6, #faf3ec 45%, #f7f0ea 70%, #f5eee8);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(160, 120, 90, 0.018) 0,
    rgba(160, 120, 90, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 18px;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.card {
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(200, 170, 150, 0.16);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  position: relative;
  animation: cardIn 450ms ease-out both;
}

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

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  box-shadow: 0 18px 56px rgba(30, 20, 10, 0.11);
}

.brand {
  text-align: center;
  margin-bottom: 6px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--petal-bg);
  margin-bottom: 10px;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--petal-6);
  stroke-width: 1.5;
  fill: none;
}

h1 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  margin: 0 0 6px;
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
}

.muted {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(200, 170, 150, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

input:focus {
  border-color: rgba(224, 110, 137, 0.45);
  box-shadow: 0 0 0 3px rgba(224, 110, 137, 0.1);
}

input::placeholder {
  color: rgba(30, 18, 10, 0.32);
}

button {
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  color: #fff;
  background: var(--petal-6);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    background 200ms ease,
    transform 120ms ease,
    box-shadow 200ms ease;
}

button:hover {
  background: var(--petal-7);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(202, 86, 114, 0.2);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

.err {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(220, 80, 80, 0.18);
  background: rgba(255, 230, 230, 0.4);
  color: rgba(140, 30, 50, 0.82);
  font-size: 14px;
  text-align: center;
  animation: errShake 350ms ease;
}

@keyframes errShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}

