/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.log {
  background: linear-gradient(135deg, #eaccf2, #dfe9f3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navbar */

/* Nav */
nav.ayan {
  background: #222;
  padding: 12px;
  text-align: center;
  position: relative;
  z-index: 1;
}

nav.ayan a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav.ayan a:hover {
  color: orange;
  transform: scale(1.2);
}

.checked {
  color: orange;
}

/* Login Box */
fieldset.lo {
  width: 90%;
  max-width: 450px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  /* Fade-in animation */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

fieldset.lo legend h2 {
  color: #222;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

/* Inputs */
.login p {
  margin: 15px 0;
  font-size: 15px;
  color: #333;
}

.pas {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

.pas:focus {
  border-color: orange;
  box-shadow: 0 0 8px rgba(255,165,0,0.4);
}

/* Password Instructions */
.text {
  font-size: 13px;
  color: #666;
  margin: 15px 0;
  white-space: pre-wrap;
  background: #f8f8f8;
  padding: 12px;
  border-left: 3px solid orange;
  border-radius: 6px;
}

/* Button Container */
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

/* Login Button */
#op {
  background: orange;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

#op:hover {
  background: #e69500;
  transform: translateY(-2px);
}

/* Sign Up Button */
#signup-btn {
  text-decoration: none;
  background: #f5f5f5;
  color: #222;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  text-align: center;
  transition: 0.3s;
}

#signup-btn:hover {
  background: orange;
  color: white;
  border-color: orange;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media screen and (max-width: 500px) {
  .button-container {
    flex-direction: column;
  }

  #op, #signup-btn {
    width: 100%;
    text-align: center;
  }
}

.ayan {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0,0,0,0.7);
  border-bottom: 3px solid #ffcc00;
  border-radius: 0 0 15px 15px;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}