/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", "Inter", Arial, sans-serif;
}

/* Body Styling */
body {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 100px 20px 40px;
}

/* --- 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);
}

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

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

nav a:hover {
  color: #ff6600;
}

/* 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;
    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;
  }
}

/* Registration Form Container */
.container {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 2px solid #ff7300;
  margin-bottom: 20px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  margin-bottom: 30px;
  color: #ff7300;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #ff7300);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

label {
  display: block;
  text-align: left;
  margin-top: 15px;
  font-weight: 600;
  color: #ccc;
  font-size: 14px;
  margin-left: 4px;
}

input {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  transition: all 0.3s ease;
  outline: none;
}

input:focus {
  border-color: #ff7300;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(255, 115, 0, 0.1);
}

button {
  margin-top: 30px;
  padding: 14px;
  width: 100%;
  background: linear-gradient(to right, #ff7300, #ff4d00);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(255, 115, 0, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(255, 115, 0, 0.4);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(0);
}

p {
  margin-top: 25px;
  color: #888;
  font-size: 14px;
}

a {
  color: #ff7300;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
    margin-top: 80px;
  }

  h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  button {
    padding: 12px;
    font-size: 16px;
  }
}
