/* General styles for desktop */
body, html {
  margin: 0;
  padding: 0;
  background-color: #3B5998;
  font-family: "Jura", sans-serif;
}

.header {
  z-index: 9999;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5vh;
  background: black;
  color: white;
  text-align: center;
  font-weight: 700;
}

.header-inner {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 1.5vh;
  width: 100%;
}

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.links a {
  color: white;
  margin-right: 20px;
  font-size: 2vh;
  text-decoration: none;
}

.links a:hover {
  color: #505050;
}

.buttons {
  z-index: 2;
  position: absolute;
  top: 70vh;
  left: 58px;
}

.button {
  z-index: 2;
  width: 15vw;
  height: 5vh;
  margin-bottom: 20px;
  background: #00559a;
  box-shadow: 0px 5px 15px rgba(37, 44, 97, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 2vh;
}

#btnlogin {
  background: #09599A;
}

#btnlogin:hover {
  background: #004679;
}

.button:hover {
  background: #004679;
  cursor: pointer;
}

.button-inner {
  color: white;
  font-size: 2vh;
  font-weight: 600;
  text-decoration: none;
}

.msgBox {
  position: relative;
  background: darkred;
  border-radius: 10px;
  margin: auto;
  width: 80%;
  top: 8vh;
  opacity: 100%;
  z-index: 9998;
  text-align: center;
  color: white;
}

.flash-success {
  color: green;
  background-color: #d4edda;
  padding: 10px;
  border: 1px solid #c3e6cb;
  margin-bottom: 10px;
  border-radius: 5px;
}

.flash-error {
  color: red;
  background-color: #f8d7da;
  padding: 10px;
  border: 1px solid #f5c6cb;
  margin-bottom: 10px;
  border-radius: 5px;
}

.FormBox {
  z-index: 5;
  display: block;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  top: 15vh;
  margin-bottom: auto;
  width: 40%;
  height: 60vh;
  position: relative;
  background: rgba(110, 110, 110, 0.9);
  border-radius: 50px;
}

.back-btn {
  text-decoration: none;
  margin-left: 5px;
  margin-top: 5px;
  color: #6F6F6F;
}

.back-btn:hover {
  cursor: pointer;
}

.bottom-text {
  position: fixed;
  bottom: 5vh;
  letter-spacing: 0.5px;
  color: white;
  width: 100%;
  text-align: center;
  font-size: 2vh;
}

.flash-message {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flash-error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.flash-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.flash-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.flash-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

.close {
  cursor: pointer;
  font-size: 20px;
  line-height: 20px;
  color: #000;
  opacity: 0.5;
  text-shadow: 0 1px 0 #fff;
}

/* Loading screen */
.loading-screen {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  text-align: center;
}

.loading-screen .spinner {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader {
  display: inline-block;
  width: 80px;
  height: 80px;
  border: 10px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s infinite linear;
}

.lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 2.5em;
  color: #3498db;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 20px;
}

.security-icons {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
}

.security-icons i {
  margin: 0 10px;
  color: #3498db;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 768px) {
  .header {
    height: 7vh;
  }

  .header-inner {
    padding: 0 10px;
  }

  .links a {
    margin-right: 10px;
    font-size: 1.5vh;
  }

  .buttons {
    top: 80vh;
    left: 20px;
  }

  .button {
    width: 40vw;
    height: 6vh;
    font-size: 1.8vh;
  }

  .msgBox {
    width: 90%;
    top: 10vh;
  }

  .FormBox {
    width: 90%;
    height: auto;
    top: 20vh;
    border-radius: 20px;
  }

  .bottom-text {
    font-size: 1.5vh;
  }
}
