/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-shadow: 2px 2px black;
  font-size: 18px;
}

body {
  background: linear-gradient(135deg,Darkolivegreen, rgb(145, 182, 81), rgb(180, 227, 100));
  color: white;
  background-size: cover;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: darkolivegreen;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}
.center-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.username {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

/* Remember & Forgot section */ 
.remember-forgot { 
  margin: -15px 0 15px;
  font-size: 0.93em;
  color: white;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
} 

.remember-forgot label input {
  accent-color: white; 
  margin-right: 3px; 
} 

  .remember-forgot a { 
    color: white; 
    text-decoration: none; 
  }

  .remember-forgot a:hover { 
  text-decoration: underline; 
  }

.temperature {
  font-size: 1rem;
  color: #ffecb3;
}
  /* Navigation */
    .navigation a {
      font-size: 1.1rem;
      color: white;
      text-decoration: none;
      margin-left: 30px;
      transition: color 0.3s ease;
    }
    .navigation a:hover {
      color: lightgray;
      border-bottom: 3px solid white;
    }
/* Login popup button */
    .btnLogin-popup {
      width: 130px;
      height: 45px;
      background: transparent;
      border: 4px solid rgb(72, 34, 6);
      border-radius: 8px;
      color: white;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
      font-size: 1.2em;
    }
    .btnLogin-popup:hover {
      background: rgb(182, 95, 48);
    }

.wrapper {
  position: relative;
  max-width: 400px;
  height: 460px;
  background: rgba(255, 255, 255, 0.12);
  border: 4px solid  rgb(72, 34, 6);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0);
  transition: transform 0.3s ease;
  margin: 130px auto;
  z-index: 99;
}
@media (max-width: 400px) {
  .wrapper {
    height: 500px;
  }
}
.wrapper.active {
  transform: scale(1);
}
.form-box {
  display: block; /* both forms are in the DOM */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.form-box.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.icon-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background:  rgb(182, 95, 48);
  color: white;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 16px;
  cursor: pointer;
}
.icon-close:hover {
  background: darkolivegreen;
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.form-box {
  width: 100%;
  padding: 40px;
}

.form-box h2 {
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}
::placeholder {
  color: rgb(255, 255, 255);
  opacity: 1;
}
.input-box {
  position: relative;
  width: 100%;
  height: 30px;
  border-bottom: 2px solid  rgb(72, 34, 6);
  margin: 30px 0;
}
.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-60%);
  color: white;
  font-size: 1em;
  transition: 0.3s;
}
.input-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 1em;
  padding: 0 35px 0 5px;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -5px;
  color: #ffecb3;
}
.input-box .icon {
  position: absolute;
  right: 8px;
  font-size: 1.4em;
  color: white;
}

.btn {
  width: 100%;
  height: 50px;
  background:  rgb(182, 95, 48);
  border: 2px solid rgb(72, 34, 6);
  border-radius: 6px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover {
  background: darkolivegreen;
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.login-register {
  font-size: 0.9em;
  text-align: center;
  margin-top: 20px;
}
.login-register a {
  color: white;
  text-decoration: none;
}
.login-register a:hover {
    text-decoration: underline;
}
/* Content sections */
.section {
  text-align: center;
  padding: 100px 20px;
  margin-top: 60px;
  font-size: 1.2rem;
  background:  rgb(182, 95, 48);
  border: 4px solid rgb(72, 34, 6);
  border-radius: 15px;
  width: 90%;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: darkolivegreen;
  color: white;
  text-align: center;
  padding: 15px 0;
  box-shadow: 0 -5px 10px rgba(0,0,0,0.8);
}/* Responsive tweaks */
@media (max-width: 768px) {
  .footer {
    font-size: 14px;
  }

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
  }
  .center-info {
    position: fixed;
    transform: none;
    margin-top: 10px;
  }
  .navigation {
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .header {
    flex-direction: column;
    height: auto;
  }
  .center-info {
    position: fixed;
    transform: none;
    margin-top: 10px;
    width: 100%;
    font-size: 13px;
  }
  .navigation {
    margin-top: 10px;
  }
}
}