* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-transform: capitalize;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  width: 100%;
  height: 100vh;
  background-color: #1e1e2f;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.container {
  width: 400px;
  padding: 30px 40px;
  background-color: #2c2c3b;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-4px);
}

.container p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #b0b0c3;
}

.container input {
  width: 100%;
  height: 45px;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #44445a;
  background-color: #1e1e2f;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.container input::placeholder {
  color: #888ba1;
}

.container input:focus {
  border-color: #7986cb;
  box-shadow: 0 0 0 3px rgba(121, 134, 203, 0.3);
  outline: none;
}

.container button {
  width: 100%;
  height: 45px;
  background-color: #5c6bc0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  

}

.container button:hover {
  background-color: #3f51b5;
}

.imgbox {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 10px;
  transition: max-height 0.5s ease-in-out;
}

.imgbox.show-img {
  max-height: 300px;
  margin: 15px 0;

}

.imgbox img {
  max-width: 100%;
  height: auto;

 
}

.error {
  animation: shake 0.3s ease-in-out 2;
  border-color: #ff5252 !important;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
