/* Importing Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Inter', sans-serif;
}

body {
  height: 100vh;
  width: 100%;
  background: url('https://images.unsplash.com/photo-1531746790731-6c087fecd65a?auto=format&fit=crop&w=1950&q=80') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  width: 400px;
  padding: 25px 35px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease-in-out;
  transition: all 0.3s ease-in-out;
  text-align: center;
  color: #ffffff;
}

label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  display: block;
  color: #764ba2;
}

input {
  width: 100%;
  height: 50px;
  border: none;
  outline: none;
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.25);
  color: #000000;
  transition: background 0.3s;
}

input:focus {
  background: rgba(255, 255, 255, 0.35);
}

input::placeholder {
  color: #755892;
}

#qrContainer {
  width: 250px;
  border-radius: 14px;
  padding: 16px;
  margin: 10px auto;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: none; /* initially hidden */
}

#qrContainer img {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 0 5px #7e7e7e;
}

.btn {
  width: 100%;
  height: 50px;
  background: #ffffff;
  color: #764ba2;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

.btn:hover {
  background: #764ba2;
  color: #fff;
  transform: translateY(-2px);
}

a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

a.download-active {
  max-height: 60px;
}

@keyframes fadeIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
