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

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fafafa;
  color: #333;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Layout similar to index */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e1e5e9;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 20px;
  height: 70px;
}

.logo img {
  height: 2.5rem;
  width: auto;
}

.logo a:hover {
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background-color: #f7fafc;
  color: #667eea;
}

main {
  flex: 1;
  padding-top: 70px;
}

/* Login-specific layout */

.page-wrapper-login {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
  display: flex;
  justify-content: center;
}

.loginForm {
  background: #ffffff;
  width: 320px;
  padding: 2rem 2.2rem;
  border-radius: 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.loginForm h1 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.loginForm input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.loginForm input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.35);
}

.loginForm button {
  width: 100%;
  padding: 0.7rem;
  background-color: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 500;
}

.loginForm button:hover {
  background-color: #5a67d8;
}

.bottom {
  margin-top: 1rem;
  text-align: center;
}

.forgotPass {
  color: red;
  cursor: pointer;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.signUp {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 0.95rem;
}

.signUp a {
  color: blue;
  text-decoration: none;
  cursor: pointer;
}

.signUp a:hover {
  text-decoration: underline;
}

/* Footer consistent with index */

.footer {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
  font-size: 0.9rem;
}

/* Responsive tweaks similar to index */

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 15px;
    flex-wrap: wrap;
    height: auto;
    min-height: 70px;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    gap: 0.25rem;
  }

  main {
    padding-top: 90px;
  }

  .page-wrapper-login {
    padding: 5.5rem 1rem 2rem;
  }

  .loginForm {
    width: 100%;
    max-width: 320px;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 2rem;
  }
}

html {
  scroll-behavior: smooth;
}

*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
  outline: none;
}