* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 1rem;
  color: #2c2c2c;
}

.container {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3),
    0 12px 48px rgba(118, 75, 162, 0.3);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

h1 {
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4b3f72;
  letter-spacing: 1px;
}

input {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.8rem;
  margin-bottom: 1.4rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-weight: 500;
}

input:focus {
  border-color: #764ba2;
  box-shadow: 0 0 8px rgba(118, 75, 162, 0.5);
}

button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(118, 75, 162, 0.5);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

button:hover {
  background: linear-gradient(90deg, #5a6de0, #6b3e9c);
  box-shadow: 0 6px 20px rgba(118, 75, 162, 0.7);
  transform: translateY(-2px);
}

#qrcode {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 2px dashed #9f9acc;
  border-radius: 1.2rem;
  background-color: #f8f7ff;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrcode img {
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actions button {
  background: #e0d7ff;
  color: #5e4a99;
  box-shadow: none;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: 0.8rem;
  border: 2px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.actions button:hover {
  background: #c7b8ff;
  color: #3a2d66;
  border-color: #764ba2;
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  .container {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  h1 {
    font-size: 1.6rem;
  }
}
