@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap");

:root{
  --pink: #ff4d88;
  --pink-dark: #b1004b;
  --cream: #fff7cc;
  --blush: #ffe1ec;
  --card: rgba(255,255,255,0.92);
  --shadow: 0 14px 35px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

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

body{
  font-family: "Pixelify Sans", system-ui, sans-serif;
  display: grid;
  place-items: center;
  margin: 0;
  height: 100%;

  background:
    linear-gradient(135deg, var(--blush), var(--cream));

  position: relative;
  overflow: hidden;
}
/* floating hearts */
body::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'>\
      <text x='0' y='30' font-size='28' fill='white' opacity='0.5'>❤</text>\
    </svg>");

  background-size: 80px 80px;
  background-repeat: repeat;
  opacity: 0.25;
}

body::before{ top: 12%; }
body::after{
  top: 72%;
  opacity: 0.22;
  animation-duration: 14s;
}

@keyframes floaty{
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.login-card{
  width: min(420px, 92vw);
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 22px 18px;
  text-align: center;
  position: relative;
  border: 2px solid rgba(255, 77, 136, 0.25);
}

.login-badge{
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: rgba(255, 77, 136, 0.12);
  border: 2px solid rgba(255, 77, 136, 0.28);
  box-shadow: 0 10px 18px rgba(255, 77, 136, 0.12);
  font-size: 28px;
}

h2{
  margin: 6px 0 4px;
  font-size: 34px;
  color: #222;
}

.subtitle{
  margin: 0 0 18px;
  color: rgba(0,0,0,0.65);
  font-size: 18px;
}

form{
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 2px solid rgba(0,0,0,0.12);
  outline: none;
  font-family: inherit;
  font-size: 18px;
  background: rgba(255,255,255,0.85);
}

input:focus{
  border-color: rgba(255, 77, 136, 0.55);
  box-shadow: 0 0 0 5px rgba(255, 77, 136, 0.12);
}

button{
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 20px;
  cursor: pointer;
  background: var(--pink);
  color: white;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 10px 18px rgba(255, 77, 136, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 22px rgba(255, 77, 136, 0.26);
}

button:active{
  transform: translateY(1px);
  box-shadow: 0 8px 14px rgba(255, 77, 136, 0.20);
}

.error{
  margin: 12px 0 0;
  min-height: 22px; /* keeps layout steady */
  color: var(--pink-dark);
  font-size: 18px;
  font-weight: 700;
}

.tiny-note{
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.65;
}

/* Accessibility helper */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
