:root {
	--blue: #3a78bd;
	--blue-soft: #6fa6dc;
	--blue-pale: #bcd9f2;
	--cream: #fbf8f0;
	--gold: #e9c46a;
}

* {
	box-sizing: border-box;
}

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

body {
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 32px 16px;
	font-family: "Lora", Georgia, serif;
	color: var(--blue);
	background: #cfe5f6 url("/static/img/sky.jpg") center / cover no-repeat fixed;
	overflow-x: hidden;
}

/* Twinkling stars cut from the original card. */
.stars img {
	position: fixed;
	width: clamp(22px, 4vw, 40px);
	animation: twinkle var(--d) ease-in-out infinite;
	pointer-events: none;
}

@keyframes twinkle {
	0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
	50%      { transform: scale(1.22) rotate(10deg); filter: brightness(1.15) drop-shadow(0 0 3px rgba(255, 255, 255, 0.95)); }
}

/* Card: cream paper, blue border, dashed stitching inside. */
.card {
	position: relative;
	width: 100%;
	max-width: 380px;
	padding: 10px;
	background: var(--cream);
	border: 3px solid var(--blue-soft);
	border-radius: 32px;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85), 0 14px 40px rgba(58, 120, 189, 0.25);
}

.inner {
	padding: 28px 26px 18px;
	border: 2px dashed var(--blue-pale);
	border-radius: 24px;
	text-align: center;
}

.kicker {
	margin: 0;
	font-size: 1.15rem;
}

h1 {
	margin: 0 0 18px;
	font-family: "Dancing Script", cursive;
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--blue-soft);
	text-shadow: 0 1px 0 #fff, 0 2px 0 rgba(58, 120, 189, 0.35);
}

.heart {
	font-size: 1.6rem;
	vertical-align: middle;
	color: var(--blue-pale);
}

form {
	display: grid;
	gap: 6px;
	text-align: left;
}

label {
	font-size: 0.95rem;
	margin-top: 8px;
}

input {
	width: 100%;
	padding: 11px 14px;
	font: inherit;
	color: #2d5f96;
	background: #fff;
	border: 2px solid var(--blue-pale);
	border-radius: 14px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
	border-color: var(--blue-soft);
	box-shadow: 0 0 0 4px rgba(111, 166, 220, 0.25);
}

button {
	margin-top: 20px;
	padding: 12px;
	font: 600 1.1rem "Lora", Georgia, serif;
	color: #fff;
	background: linear-gradient(180deg, #7db3e6, var(--blue));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(58, 120, 189, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(58, 120, 189, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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

.error {
	margin: 0 0 4px;
	padding: 9px 12px;
	font-size: 0.92rem;
	text-align: center;
	color: #a23c56;
	background: #fdf0f3;
	border: 1px dashed #e7a9b8;
	border-radius: 12px;
}

/* Dashed line with a heart, like the dividers on the card. */
.divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 22px 0 0;
	color: var(--blue-soft);
}

.divider::before,
.divider::after {
	content: "";
	flex: 1;
	border-top: 2px dashed var(--blue-pale);
}

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