body {
  background-color: orange;
  font-family: arial, sans-serif;
  align-items: center;
  justify-content: center;
  display: flex;
  height: 100vh;
  margin: 0;
}

/* --- Base Header Styles --- */
nav {
  background-color: #0d0d0d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #333;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

nav .logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

nav .menu a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
}

nav a:hover {
  color: #ff6600;
}

.menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Animated Line under Header */
.animated-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  overflow: hidden;
}

.animated-line::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to left, gold 50%, transparent 0%);
  background-size: 200% 100%;
  animation: moveLine 20s linear infinite;
}

@keyframes moveLine {
  0% {
    background-position: -100% 0%;
  }

  100% {
    background-position: 200% 0%;
  }
}

/* --- Responsive Header Styles --- */

@media (max-width: 1200px) {
  nav .menu a {
    margin: 0 10px;
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  nav .menu a {
    margin: 0 8px;
    font-size: 14px;
  }
}

@media (max-width: 940px) {
  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .logo {
    font-size: 22px;
  }

  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0d0d0d;
    border-top: 1px solid #333;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 15px;
  }
}

/* --- Login Page Styles --- */
.login {
  background: linear-gradient(to bottom, #222, #000);
  color: orange;
  padding: 20px;
  width: 300px;
  height: 330px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 10px 30px 55px rgba(0, 0, 0, 0.5);
  margin-top: 50px;
  /* Adjust for fixed header */
}

.remember {
  display: flex;
  gap: 5px;
  align-items: center;
}

input {
  padding: 8px;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  border: none;
  outline: none;
}

h1 {
  margin-bottom: 20px;
  color: white;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  text-align: left;
  font-size: 14px;
}

button {
  background: orange;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

button:hover {
  background: #e6b800;
}

a {
  color: orange;
  text-decoration: none;
}

a:hover {
  color: yellow;
}

/* --- Specific Responsive Adjustments for Login --- */
@media (max-width: 940px) {
  .login {
    margin-top: 100px;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .login {
    width: 320px;
    height: auto;
  }
}

@media (min-width: 1367px) {
  .login {
    width: 340px;
    height: auto;
  }
}

@media (min-width: 941px) and (max-width: 1024px) {
  .login {
    width: 300px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .login {
    width: 84%;
    margin-top: 100px;
  }

  input,
  button {
    font-size: 14px;
    padding: 8px;
  }
}
