:root {
  --ink: #30272b;
  --muted: #786b70;
  --paper: #fbf8f8;
  --rose: #b96680;
  --rose-dark: #9f5069;
  --rose-soft: #f1dfe4;
  --line: rgba(74, 52, 60, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 86%, rgba(234, 208, 216, 0.6), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(241, 223, 228, 0.7), transparent 31rem),
    var(--paper);
  font-family: var(--sans);
}

body::before,
body::after {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(185, 102, 128, 0.11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body::before { top: -16rem; right: -10rem; }
body::after { bottom: -19rem; left: -8rem; }

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px 20px;
  place-items: center;
}

.login-card {
  position: relative;
  width: min(100%, 430px);
  padding: 48px 48px 35px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px 46px 4px 46px;
  background: rgba(255, 253, 253, 0.82);
  box-shadow: 0 32px 85px rgba(94, 67, 76, 0.14);
  text-align: center;
  backdrop-filter: blur(16px);
  animation: enter 600ms ease both;
}

.heart {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  animation: heartbeat 3.2s ease-in-out infinite;
}

.heart svg {
  width: 25px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.45;
}

.eyebrow {
  color: var(--rose-dark);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

h1 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: -0.035em;
}

.intro {
  margin: 11px 0 31px;
  color: var(--muted);
  font-size: 14px;
}

form { text-align: left; }

label {
  display: block;
  margin: 0 0 8px 3px;
  color: #64565b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.field {
  position: relative;
  display: flex;
  height: 52px;
  margin-bottom: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field:focus-within {
  border-color: rgba(185, 102, 128, 0.55);
  box-shadow: 0 0 0 4px rgba(185, 102, 128, 0.08);
}

.field > svg {
  width: 18px;
  margin-left: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--rose);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

input {
  width: 100%;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 500 14px var(--sans);
}

.reveal {
  height: 100%;
  padding: 0 15px;
  border: 0;
  color: var(--rose-dark);
  background: transparent;
  font: 600 10px var(--sans);
  cursor: pointer;
}

.error {
  min-height: 18px;
  margin: -7px 0 9px;
  color: #a13f5d;
  font-size: 12px;
  text-align: center;
}

.submit {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--rose);
  box-shadow: 0 14px 28px rgba(159, 80, 105, 0.18);
  font: 600 13px var(--sans);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.submit:hover { background: var(--rose-dark); transform: translateY(-2px); }
.submit:disabled { cursor: wait; opacity: 0.68; transform: none; }
.submit svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.privacy {
  margin: 29px 0 0;
  color: #98898e;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.privacy span { margin-right: 6px; color: var(--rose); font-size: 14px; }

button:focus-visible,
input:focus-visible { outline: 3px solid rgba(185, 102, 128, 0.28); outline-offset: 3px; }

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

@keyframes heartbeat {
  0%, 72%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(185, 102, 128, 0.2); }
  78% { transform: scale(1.07); box-shadow: 0 0 0 8px rgba(185, 102, 128, 0); }
  86% { transform: scale(1); }
  91% { transform: scale(1.04); }
}

@media (max-width: 520px) {
  .login-card { padding: 42px 24px 29px; border-radius: 4px 36px 4px 36px; }
  h1 { font-size: 37px; }
}

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