/* root palette – warm sunset vibes */
:root {
  --grad-start: #ffecd2;
  --grad-end: #fcb69f;
  --accent: #ff8c5a;
  --accent-dark: #e06f3d;
  --card-bg: #ffffff;
  --radius: 22px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  --text: #464646;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: var(--text);
}

.card {
  width: 90%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3.2rem 3rem 2.8rem;
  box-shadow: var(--shadow);
  text-align: center;
}

h1 {
  margin: 0 0 1.8rem;
  font-weight: 600;
  font-size: 1.9rem;
}

form {
  display: grid;
  gap: 1.2rem;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
  justify-self: start;
}

input {
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  outline: none;
  transition: border-color 0.25s;
  background: #f9f9f9;
}

input:focus {
  border-color: var(--accent);
}

button {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  transition: transform 0.18s;
}

button:hover {
  transform: scale(1.03);
}

#error {
  color: #c62828;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

footer {
  margin-top: 1.8rem;
  font-size: 0.8rem;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

.animate {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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