/* ===== Page Layout ===== */
body {
  display: flex;
  flex-direction: column;
  min-width: 375px;
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, sans-serif;
}

/* ===== Header ===== */
header.banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  /* aligns top of header row */
  padding: 0.5rem 1rem;
  background-color: #07004d;
  color: #fff;
  flex: 0 0 auto;
  min-height: 80px;
}

/* Left side: title + nav stacked */
.left-content {
  display: flex;
  flex-direction: column; /* stack title above menu */
  gap: 0.25rem;
}

.left-content h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
}

nav menu li a {
  color: #ddd;
  text-decoration: none;
  padding: 0.25em 0.5em;
}

nav menu li a:hover {
  color: #fff;
  border-bottom: 1px solid #aaa;
}

/* Right side login/profile */
.right-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.profile-button {
  color: #ddd;
  text-decoration: none;
  border: 1px solid #777;
  padding: 0.3em 0.75em;
  border-radius: 4px;
}

.profile-button:hover {
  background-color: #222;
  color: #fff;
}

/* ===== Main Content ===== */
main {
  flex: 1 calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background-color: #343897;
  color: #fff;
}

main form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

main form div {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

main input {
  padding: 0.25rem 0.5rem;
}

/* ===== Footer ===== */
footer {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background-color: #07004d;
  color: #aaa;
  justify-content: space-between;
}

footer a {
  color: #aaa;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* ===== Small Height Handling ===== */
@media (max-height: 600px) {
  header.banner {
    display: none;
  }
  footer {
    display: none;
  }
  main {
    flex: 1 100vh;
  }
}
