body {
  margin: 0;
  padding-top: 120px; /* adjust to height of your nav */
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0a1a40, #12285c); /* darker tones */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;  /* logo left, links right */
    align-items: center;             /* vertically align within nav bar */
    background: rgba(0, 0, 128, 0.8);
    padding: 0.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
  background: transparent;
  backdrop-filter: blur(4px); /* optional frosted effect */
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: white;
    position: relative;
}

nav a:hover {
    color: rgb(13, 62, 237); /* yellow hover */
}

nav img {
    height: 60px;
    width: auto;
}

.form-container {
  background: rgba(0, 0, 128, 0.5);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 350px;
  max-width: 90%;
  border: 1px solid #fff;
}

.form-container.hidden {
  display: none;
}

form label {
    display: block;
    text-align: left;
    margin-bottom: 0.3rem;
    color: white;
}

input {
  width: 90%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #fff;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

input::placeholder {
  color: #ddd;
}

button {
  width: 80%;
  padding: 10px;
  background: yellow;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

.forgot {
  display: block;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.switch-link {
  margin-top: 15px;
  color: rgb(219, 219, 14);
  cursor: pointer;
}

.success {
  background: #28a745;
  color: #fff;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.error {
  background: #c0392b;
  color: #fff;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* --- NAV FIXES --- */
nav ul {
  flex-wrap: nowrap;
}
nav a {
  white-space: nowrap;
}
nav img {
  max-height: 60px;
  height: auto;
  width: auto;
}

/* gradient background for nav */
nav {
  background: linear-gradient(135deg, #0a1a40, #12285c);
}

/* --- FORM FIXES --- */
.form-container form label {
  display: block;
  text-align: left;
  margin-bottom: 0.3rem;
  color: #fff;
}


@media (max-width: 600px) {
  .form-container {
    width: 100%;
    border-radius: 0;
  }
}
