/* full-page background */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
  background: url('https://raw.githubusercontent.com/Nakul-Sinha/Final_Ascension/main/stars-in-sky-galaxy-6960x4645-15601.jpg') center/cover no-repeat;
  color: #f4f4f4;
}

/* center the container perfectly */
body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* translucent card with mystical glow */
.shard-container {
  width: 420px;
  max-width: 92%;
  padding: 32px;
  border-radius: 16px;
  background: rgba(0,0,0,0.5);   
  box-shadow: 0 0 20px rgba(0,255,255,0.15), 0 0 40px rgba(0,0,0,0.6);
  text-align: center;
  backdrop-filter: blur(8px);
  animation: floatBox 4s ease-in-out infinite alternate;
}

/* floating animation to make box look mystical */
@keyframes floatBox {
  from { transform: translateY(0px); }
  to   { transform: translateY(-6px); }
}

/* title */
.shard-container h1 {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: bold;
  color: #e6faff;
  text-shadow: 0 0 8px #00e1ff, 0 0 14px rgba(0,255,255,0.6);
}

/* labels */
.shard-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center; /* centered instead of left */
  color: #cfeff0;
  font-size: 16px;
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
}

/* input box */
.shard-container input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.25);
  background: rgba(0,0,0,0.65);
  color: #cfeff0;
  font-size: 16px;
  box-shadow: inset 0 0 12px rgba(0,255,255,0.15);
  outline: none;
  margin-bottom: 16px;
  transition: box-shadow 0.3s, border 0.3s;
}

.shard-container input[type="text"]:focus {
  border: 1px solid rgba(0,255,255,0.6);
  box-shadow: 0 0 12px rgba(0,255,255,0.6), inset 0 0 12px rgba(0,255,255,0.2);
}

/* button */
.shard-container button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #e6faff;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,255,255,0.5);
  box-shadow: 0 0 10px rgba(0,255,255,0.2), inset 0 0 6px rgba(0,255,255,0.1);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.shard-container button:hover {
  box-shadow: 0 0 18px rgba(0,255,255,0.7), inset 0 0 10px rgba(0,255,255,0.3);
  transform: scale(1.04);
}

.shard-container button:active { 
  transform: scale(0.98);
}

/* result messages */
#result {
  margin-top: 18px;
  min-height: 28px;
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* success and error glow */
#result.success { 
  color: #b2ffb2; 
  text-shadow: 0 0 6px #00ff9d, 0 0 12px rgba(0,255,128,0.6);
}
#result.error { 
  color: #ffcccc; 
  text-shadow: 0 0 6px #ff4d4d, 0 0 12px rgba(255,0,0,0.6);
}
