body {
  font-family: Arial, sans-serif;
  background-color: #f8f5ea;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min-content;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.form-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fcfaf2;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 30px;
  width: 350px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

label {
  width: 100%;
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-weight: bold;
}

.input-group {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #999;
  margin-bottom: 20px;
}

.icon {
  margin-right: 8px;
  font-size: 1.2rem;
}

.icon img {
  width: 20px;
  height: 20px;
}

input {
  border: none;
  outline: none;
  flex: 1;
  padding: 10px 0;
  font-size: 0.95rem;
  background: transparent;
}

button {
  background-color: black;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  width: 200px;
}

button:hover {
  background-color: #333;
}

.login-link {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}

.login-link a {
  color: #3366cc;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

.alert-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #f5c6cb;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Modal timer display */
#modal_timer {
  margin-top: 10px;
  font-weight: bold;
  color: #000;
  font-size: 1.2rem;
}

.modal-box button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: auto;
}

.modal-box button:hover {
  background: #333;
}

.toast-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  z-index: 10000;
  opacity: 0;
  animation: fadeinout 3s ease-in-out forwards;
}

@keyframes fadeinout {
  0% { 
    opacity: 0; 
    transform: translate(-50%, -60%); 
  }
  10% { 
    opacity: 1; 
    transform: translate(-50%, -50%); 
  }
  90% { 
    opacity: 1; 
  }
  100% { 
    opacity: 0; 
    transform: translate(-50%, -60%); 
  }
}