* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Arial, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Original static background image kept as requested */
  background: url("../images/minecraft-bg.png") center/cover no-repeat fixed;
  background-color: #0f172a; 
}

/* overlay */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Slightly darker for better glass contrast */
}

/* glass cards (combined for DRY code) */
.card, .formBox {
  position: relative;
  width: 100%;
  max-width: 380px; /* Slightly wider for modern feel */
  padding: 40px;
  
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  
  text-align: center;
  animation: fadeUp .6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* success icon */
.check {
  font-size: 56px;
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  margin-bottom: 12px;
}

/* headings */
h1, .formTitle {
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(to bottom, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  margin-bottom: 20px;
}

h2 {
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 14px;
  margin-top: 14px;
}

/* text */
p, .note {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.note {
  font-size: 13px;
}

/* ===== INPUTS ===== */
input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  border-color: #6366f1;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* ===== BUTTONS (Shimmer Effect base) ===== */
.btn, .registerBtn, .copyBtn {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.btn, .registerBtn {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
}

/* The Animated Light Streak */
.btn::after, .registerBtn::after, .copyBtn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.5s;
}

.btn:hover::after, .registerBtn:hover::after, .copyBtn:hover::after {
  left: 100%;
}

.btn:hover, .registerBtn:hover, .copyBtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* whatsapp */
.whatsapp {
  background: linear-gradient(135deg, #25D366, #1da851);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* server button & register button */
.server, .registerBtn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.server:hover, .registerBtn:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* copy button */
.copyBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: none;
}

.copyBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* server view hidden */
#serverView {
  display: none;
}

/* back button */
.backBtn {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  transition: all 0.3s ease;
}

.backBtn span:last-child {
  position: relative;
  top: -1px;
}

.backBtn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid currentColor; /* Adapts to text color */
  margin-right: 4px;
  transition: 0.2s;
}

.backText {
  line-height: 1;
}

/* ip container */
.ipBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3); /* Inset dark box style */
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: #e2e8f0;
  font-size: 15px;
  font-family: monospace; /* Tech feel for IP */
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

/* verifying spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #6366f1;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* responsive */
@media(max-width:480px) {
  .card, .formBox {
    width: 92%;
    padding: 30px 24px;
  }
}
