* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-image: url('./pictures/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  width: 100%;
}

.logo {
  text-align: center;
  color: #126f17;
}

.logo h1 {
  font-family: 'Pacifico', cursive;
  font-size: 2.8rem;
  font-weight: normal;
  letter-spacing: 1px;
  color: rgb(79, 133, 60);
}

.logo p {
  font-size: 1rem;
  font-style: italic;
  color: white;
}

.logo-img {
  width: clamp(100px, 10vw, 180px);
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-img:hover {
  transform: scale(1.1) rotate(-2deg);
}

.form-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.form-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: white;
}

form input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: background 0.3s ease;
}

form input:focus {
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box button[type="submit"] {
  background-color: #0d47a1;
  color: white;
}

.login-box button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

.register-box button[type="submit"] {
  background-color: white;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.register-box button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}


.options {
  display: flex;
  justify-content: space-between; /* left: remember, right: forgot */
  align-items: center;           /* vertically center the row */
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: white;
  gap: 12px;
}

.options a {
  color: #c8e6c9;
  text-decoration: none;
}

.options a:hover {
  text-decoration: underline;
}

/* If your markup uses <div class="remember-me"><label>...</label></div>
   the selector below targets the label inside the wrapper.
   If you instead use <label class="remember-me"> wrap the checkbox,
   the second selector handles that too. */
.remember-me,
.remember-me label {
  display: inline-flex;
  align-items: center;         /* vertical centering for checkbox + text */
  gap: 8px;                    /* space between checkbox and text */
  cursor: pointer;
  font-size: 0.95rem;
  color: #ffffff;              /* make sure text is readable on green bg */
  user-select: none;
  margin: 0;                   /* remove default label margins */
  padding: 0;
}

/* native checkbox reset + consistent sizing */
.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;                   /* remove browser default margin */
  padding: 0;
  box-sizing: border-box;
  vertical-align: middle;
  cursor: pointer;
  accent-color: #2e7d32;      /* modern browsers use this color for check */
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,0.9); /* makes unchecked box visible */
  background: #ffffff;
  display: inline-block;
  /* small vertical tweak if you still see baseline differences:
     change translateY to -1px or 1px as needed */
  transform: translateY(0);
  /* If you want the checkbox to use site colors only when checked,
     you can remove the white background and rely on accent-color, but
     the white background improves contrast on the green panel. */
}

/* Keep the label text tightly vertically centered */
.remember-text {
  line-height: 1;
  display: inline-block;
}

/* style the forgot link so it aligns to the right and matches design */
.options .forgot {
  color: #ffffff;              /* or a different color if desired */
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
}

/* add hover focus styles for accessibility */
.remember-me input[type="checkbox"]:focus,
.options .forgot:focus {
  outline: 2px solid rgba(255,255,255,0.2);
  outline-offset: 2px;
}

/* small responsive tweak: if container becomes narrow, allow wrapping */
@media (max-width: 420px) {
  .options {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .options .forgot {
    margin-left: auto;
  }
}

.switch-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  background-color: #2e7d32;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.switch-message button {
  margin-top: 0.5rem;
  background-color: white;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.switch-message button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .form-box {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .logo-img {
    width: 100px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  .logo p {
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .logo-img {
    width: 140px;
  }

  .logo h1 {
    font-size: 3rem;
  }

  .logo p {
    font-size: 1.2rem;
  }
}