/* ========= Full-Page Layout & Reset ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('../../assets/bk1.png');
  background-size: cover;         /* ensures image covers entire area */
  background-position: center;    /* centers the image */
  background-repeat: no-repeat;   /* prevents tiling */
  /* background: #f4f6fc; */
  color: #333;
}
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========= Header ========= */
.site-header {
  display: flex;
  align-items: center;
  padding: 12px 24px;  
  /* background-color: #f4f6fc; */
  /* background: rgba(255,255,255,0.8); */
  /* backdrop-filter: blur(10px); */
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  z-index: 1001;
}
.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto; /* pushes navigation to right */
}
.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.site-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
.header-links {
  display: flex;
  gap: 20px;
}
.header-links a {
  text-decoration: none;
  color: #1f6feb;
  font-weight: 500;
  transition: color 0.3s;
}
.header-links a:hover {
  color: #0d3e90;
}

/* ========= Hamburger + Mobile Sync ========= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}
.sidebar {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  padding: 16px 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}
.sidebar.active {
  display: block;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #1f6feb;
  font-weight: 500;
}
.nav-links a:hover {
  color: #0d3e90;
}

/* ========= Main Form Container ========= */
main {
  flex: 1;
  padding-top: 100px; /* to avoid header overlap */
}
.form-container {
  max-width: 600px;
  margin: 100px auto 40px;
  padding: 30px;
  background: rgb(248, 251, 251);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.form-container h2 {
  text-align: center;
  color: #2c3e50;
}
.alert.error {
  padding: 15px;
  margin-bottom: 20px;
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #e0b4b4;
  border-radius: 5px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
label {
  font-weight: bold;
}
input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
input:focus {
  border-color: #3498db;
  background: #f9fcff;
  outline: none;
}
button {
  padding: 12px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover {
  background: #2980b9;
}
.center-text {
  text-align: center;
  margin-top: 15px;
}
.center-text a {
  color: #1f6feb;
  text-decoration: none;
}
.center-text a:hover {
  text-decoration: underline;
}

/* ========= Footer ========= */
.site-footer {
  /* background: rgba(255,255,255,0.8); */
  backdrop-filter: blur(10px);
  padding: 20px 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .header-links {
    display: none;
  }
  .form-container {
    margin: 100px 20px 20px;
    padding: 20px;
  }
}
