@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

:root{
  --base-clr: #11121a;
  --line-clr: #42434a;
  --hover-clr: #222533;
  --text-clr: #e6e6ef;
  --accent-clr: #5e63ff;
  --secondary-text-clr: #b0b3c1;
}

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

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-color: var(--base-clr);
}

.form-box {
  position: relative;
  width: 400px;
  padding: 40px 30px;
  background-color: var(--base-clr);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

h2 {
  font-size: 2em;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.inputbox {
  position: relative;
  margin: 20px 0;
  width: 100%;
  border-bottom: 2px solid #fff;
}

.inputbox label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1em;
  pointer-events: none;
  transition: .5s;
}

input:focus ~ label,
input:valid ~ label {
  top: -5px;
  font-size: 0.85em;
  color: #aaa;
}

.inputbox input {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  padding: 0 35px 0 5px;
  color: #fff;
}

.inputbox ion-icon {
  position: absolute;
  right: 8px;
  top: 20px;
  font-size: 1.2em;
  color: #fff;
}

button {
  width: 100%;
  height: 45px;
  border-radius: 25px;
  background: #5e63ff;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  transition: 0.3s;
}

button:hover {
  background: #4348d0;
}

a {
  color: #5e63ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.desc-box {
  margin-top: 15px;
  padding: 10px;
  font-size: 0.85em;
  border: 1px solid var(--line-clr);
  border-radius: 10px;
  background: var(--hover-clr);
  color: var(--secondary-text-clr);
  white-space: pre-line;
  display: none;
}

.alert {
  margin-top: 20px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9em;
  text-align: center;
  display: none;
}

.alert.success {
  background: #e6ffed;
  color: #27ae60;
  border: 1px solid #2ecc71;
}

.alert.error {
  background: #ffe6e6;
  color: #c0392b;
  border: 1px solid #e74c3c;
}

.qris-img {
  margin-top: 15px;
  max-width: 100%;
  border-radius: 8px;
}