* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1f2937, #3b82f6);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 15px;
}

.container {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.container p {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}

.container input {
  width: 100%;
  height: 50px;
  border: 2px solid #3b82f6;
  outline: none;
  padding: 10px;
  margin: 10px 0 20px;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.container input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.container button {
  width: 100%;
  height: 50px;
  background: #3b82f6;
  color: #fff;
  border: none;
  outline: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  margin-top: 10px;
  font-weight: 500;
  font-size: 16px;
  transition: 0.3s;
}

.container button:hover {
  background: #2563eb;
}

#imgBox {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.8s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#imgBox img {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 8px;
}

#imgBox.show-img {
  max-height: 400px;
}

.error {
  animation: shake 0.1s linear 10;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }
  .container input {
    height: 45px;
    font-size: 13px;
  }
  .container button {
    height: 45px;
    font-size: 15px;
  }
  #imgBox img {
    max-width: 200px;
  }
}