body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
}

/* Decorative background orbs */
body::before {
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,164,175,0.18) 0%, transparent 70%);
  top: -120px; right: -120px;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,72,0.07) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--rose-600);
  text-decoration: none;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

/* Card */
.card {
  background: white;
  border-radius: 28px;
  border: 1px solid var(--rose-100);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(159, 18, 57, 0.07);
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

/* Icon */
.icon-wrap {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}

.icon-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 1.5px dashed var(--rose-200);
  animation: spin 12s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.icon-inner {
  color: var(--rose-600);
}

/* Text */
.card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.card-title em { font-style: italic; color: var(--rose-600); }

.card-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
  text-align: center;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Flash */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.83rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flash-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Field */
.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.field-wrap { position: relative; }

.field-wrap svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
}

.field-wrap input {
  width: 100%;
  padding: 0.8rem 0.9rem 0.8rem 2.6rem;
  border: 1.5px solid var(--rose-100);
  border-radius: 12px;
  background: var(--rose-50);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.field-wrap input:focus {
  border-color: var(--rose-400);
  background: white;
  box-shadow: 0 0 0 3px rgba(244,63,94,0.1);
}

.field-wrap:focus-within svg { color: var(--rose-500); }

/* Submit */
.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--rose-600);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(225,29,72,0.28);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.15s;
}

.btn-submit:hover {
  background: var(--rose-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(225,29,72,0.35);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

/* Back link */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.83rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--rose-600); }
.back-link svg { transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}