@font-face {
  font-family: 'Legitima';
  src: url('/static/fonts/fonnts.com-Legitima-.woff') format('woff2');
}

body {
  margin: 0;
  min-height: 100vh;
  background: url("/static/images/home/login.webp") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

.login-box {
  width: 80%;
  max-width: 350px;
  padding: 40px;
  text-align: center;
  padding-top: 320px;
  border-radius: 10px;
  box-sizing: border-box;
}

.login-box input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 18px;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 2px;
  background: #8B0000;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  font-family: 'Legitima', sans-serif;
}

.login-box button:hover {
  background: #A52A2A;
}

.error {
  color: red;
  margin-bottom: 10px;
  font-size: 14px;
}





/************** Mobile Devices ********************/

@media (max-width: 480px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0px 20px;
    background-size: cover;
    background-position: center;
  }

  .login-box {
    width: 90%;
    max-width: 400px;
    padding: 30px 20px;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
    padding-top: 350px;
  }

  .login-box input[type="text"],
  .login-box input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .login-box button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    box-sizing: border-box;
    font-family: 'Legitima', sans-serif !important;
  }
}



/******* Toast Messages ****************/
.toast-message {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #ff7a00;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

.toast-message.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}