* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 99;
}
header h4 {
  font-size: 1em;
  color: grey;
  font-weight: 200;
}
.navigation a {
  position: relative;
  font-size: 1em;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 40px;
}

.navigation .btnLogin-popup {
  width: 130px;
  height: 50px;
  background-color: #4589ff;
  border: 2px solid #fff;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  color: #fff;
  font-weight: 500;
  margin-left: 40px;
  transition: 0.5s;
  display: flex;

  align-items: center;
}
.navigation .btnLogin-popup:hover {
  background: hwb(218 12% 52%);
  color: #fff;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #4589ff;
  position: relative;
}
.wrapper {
  position: relative;
  width: 400px;
  height: 570px;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: height 0.2s ease;
}

.wrapper .form-box-login {
  width: 100%;
  padding: 40px;
}
.form-box-login h2 {
  font-size: 2em;
  color: #162938;
  text-align: center;
}
.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  border-bottom: 2px solid #162938;
  margin: 30px 0;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -5px;
}
.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: #162938;
  font-weight: 600;
  padding: 0 35px 0 5px;
}
.input-box .icon {
  position: absolute;
  right: 8px;
  font-size: 1.2em;
  color: grey;
  line-height: 57px;
}
.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: grey;
  font-weight: 500;
  pointer-events: none;
  transition: 0.5s;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -5px;
}

.remember-forgot {
  font-size: 0.9em;
  color: grey;
  font-weight: 500;

  display: flex;
  justify-content: space-between;
}
.remember-forgot label input {
  accent-color: #162938;
  margin-right: 3px;
}

.btn {
  margin-top: 80px;
  display: flex;
  justify-content: space-around;
}
#reg {
  width: 130px;
  height: 50px;
  background: #4589ff;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.5s;
}
#log:hover {
  background: hwb(218 12% 52%);
  color: #fff;
}
#guest {
  width: 130px;
  height: 50px;

  border: none;
  outline: none;
  color: black;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.5s;
}
.btn a {
  text-decoration: none;
  color: grey;
  font-weight: 500;
}

.btn {
  margin: 10px;
}
h2 {
  margin: 10px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .wrapper {
    width: 90%;
    max-width: 400px;
    margin: 20px;
    height: auto;
    min-height: 520px;
  }

  .wrapper .form-box-login {
    padding: 0 16px;
  }

  .form-box-login h2 {
    font-size: 1.8em;
  }

  .input-box {
    margin: 20px 0;
  }

  .btn {
    margin-top: 40px;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  #reg,
  #guest {
    width: 100%;
    max-width: 200px;
  }
  .img-logo {
    margin: -20px;
  }
  .img-logo img {
    height: 50px;
    width: 50px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 10px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    gap: 10px;
    padding-top: 100px;
    overflow-x: hidden;
  }

  .img-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .img-logo img {
    max-width: 30px;
    height: auto;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .wrapper {
    width: 90%;
    border-radius: 10px;
    height: auto;
    min-height: auto;
    transform: none;
    margin-top: 0;
    position: relative;
    z-index: 1;
  }
}

@media screen and (max-height: 600px) {
  .wrapper {
    margin: 10px 0;
    height: auto;
  }
}

/* Improve overall responsiveness */
.img-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
}

@media screen and (max-width: 480px) {
  .img-logo img {
    width: 40px;
    height: auto;
  }
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
}

.end {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media screen and (max-height: 700px) {
  .img-logo {
    position: absolute;
  }

  footer {
    position: relative;
    margin-top: 20px;
  }
}

body,
html {
  height: 100%;
  margin: 0;
  overflow: hidden; /* Verhindert Scrollen während der Animation */
}

.img-logo {
  position: fixed;
  bottom: 0;
  right: 0;
  animation: moveLogo 3s forwards;
}

@keyframes moveLogo {
  from {
    bottom: -100px;
    right: -100px;
  }
  to {
    top: 40px;
    left: 40px;
    bottom: auto;
    right: auto;
  }
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
}
.end {
  color: #fff;

  font-weight: 200;
  text-align: center;
  display: flex;
  justify-content: center;
}
.privacy {
  color: #fff;
  font-size: 1em;
  font-weight: 200;
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-right: 20px;
}
.privacy a {
  color: white;
  font-size: 1em;
  font-weight: 200;
  text-decoration: none;
  margin-left: 5px;
}
.legal-notice {
  color: white;
  font-size: 1em;
  font-weight: 300;
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.legal-notice a {
  color: white;
  font-size: 1em;
  font-weight: 200;
  text-decoration: none;
  margin-left: 5px;
}
.remember-forgot {
  font-size: 0.9em;
  color: grey;
  font-weight: 500;

  display: flex;
  justify-content: center;
}
.remember-forgot a {
  margin-left: 20px;
  color: #4589ff;
  font-size: 0.9em;
  font-weight: 300;
  text-decoration: none;
}
.d-none {
  display: none;
}
