:root {
  --card-width: 360px;
}

body {
  font-family: system-ui, Arial;
  margin: 0;
  background: #f7f7f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 20px;
}

.duck-left {
  width: 180px;   /* 👈 Change this value to resize duck */
  height: auto;
  display: block;
}

.card {
  width: var(--card-width);
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0 0 16px;
  text-align: center;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

input,
button {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-size: 14px;
  border-radius: 6px;
}

input {
  border: 1px solid #cfcfd3;
  background: #fff;
}

button {
  border: none;
  background: #0078d7;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #005fa3;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}
/* Mobile responsive tweaks */
@media (max-width: 768px) {
  .container {
    flex-direction: column;   /* stack duck above the card */
    gap: 20px;
  }
  .duck-left {
    width: 100px;             /* smaller duck on tablets/phones */
  }
}

@media (max-width: 480px) {
  .duck-left {
    display: none;            /* hide duck completely on very small screens */
  }
  .card {
    width: 90%;               /* card fills most of the screen */
  }
}
/* Responsive font scaling */
@media (max-width: 768px) {
  body {
    font-size: 14px;   /* slightly smaller base font */
  }
  h1 {
    font-size: 20px;
  }
  label {
    font-size: 13px;
  }
  input, button {
    font-size: 13px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;   /* even smaller on phones */
  }
  h1 {
    font-size: 18px;
  }
  label {
    font-size: 12px;
  }
  input, button {
    font-size: 12px;
    padding: 8px;
  }
}
