/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e6dede;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Navbar ---------- */
nav {
  background-color: #3498db;
  color: #fff;
  padding: 1rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  margin: 0 0.5rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #2980b9;
}

nav .theme-btn {
  margin-left: auto;
}

.theme-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  margin-left: 1rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.theme-btn:hover {
  background-color: #2980b9;
}

/* ---------- Container ---------- */
.container {
  max-width: 500px; /* Bigger than login */
  width: 90%;
  margin: 100px auto 50px auto;
  background-color: white;
  padding: 45px 35px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  width: 130px;
  margin-bottom: 15px;
}

/* ---------- Headings ---------- */
h2 {
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 700;
  color: #0f172a;
}

/* ---------- Form Inputs ---------- */
input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ---------- Button ---------- */
button {
  width: 100%;
  padding: 14px;
  background-color: #3498db;
  color: white;
  font-size: 17px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding: 18px 12px;
  background-color: #0b1220;
  color: #e6eef8;
  text-align: center;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* ---------- Dark Mode ---------- */
body.dark-mode {
  background: linear-gradient(135deg, #0b1220, #1c1f2a);
  color: #e6eef8;
}

body.dark-mode .container {
  background: #252525;
  box-shadow: 0 12px 30px rgba(255,255,255,0.05);
}

body.dark-mode input {
  background-color: #333;
  color: #f0f0f0;
  border-color: #555;
}

body.dark-mode input:focus {
  border-color: #00bfff;
  box-shadow: 0 0 0 3px rgba(0,191,255,0.2);
}

body.dark-mode button {
  background: linear-gradient(135deg, #00bfff, #0094d3);
  color: #0c3057;
}

body.dark-mode button:hover {
  background: linear-gradient(135deg, #0094d3, #007bbf);
}

body.dark-mode nav {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(6px);
}

body.dark-mode nav a, body.dark-mode nav .theme-btn {
  color: #fff;
}
body.dark-mode h2 {
  color: #00e5ff;  /* Brighter color for better contrast in dark mode */
}
/* ---------- Links ---------- */
p a {
  color: #3498db;
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }
  nav a, .theme-btn {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
}
