@font-face {
  font-family: "VanillaExtract";
  src: url("/media/VanillaExtract.ttf");
}

/* Full viewport, no scrollbars, works in iframe */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #FFFFFF;
  color: #000000;
  font-family: Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Main container that scales nicely */
.container {
  width: 320px;        /* base width (mobile-first) */
  max-width: 90vw;     /* never wider than 90% of viewport */
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
}

/* Responsive typography */
h1, h2, p, label, input, button {
  font-size: clamp(12px, 2.8vw, 20px);
}

/* Form inputs */
input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  padding: 0.8rem;
  margin: 0.6rem 0;
  border: 2px solid #DEDEDE;
  border-radius: 8px;
  background: #EDEDED;
  box-sizing: border-box;
  font-size: clamp(14px, 3vw, 18px);
}

input:focus {
  outline: none;
  border-color: #55DD33;
  background: #FFFFFF;
}

#error {
  text-align: left;
}

/* Buttons */
#login {
  width: 100%;
  max-width: 220px;
  margin: 1.5rem auto;
  padding: 0.5rem 0.25rem;
  background: #55DD33;
  color: #FFFFFF;
  font-size: clamp(16px, 4vw, 24px);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
}

#login:hover, #signup:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Optional hue animation on the button (fun effect) */
#login {
  animation: hue 12s infinite linear;
}

/* Ensure everything stays inside the viewport on very small screens */
@media (max-height: 500px) {
  .container { padding: 1rem; }
}