* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 520px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #f1f5f9;
}

.hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 0.9rem;
  margin-bottom: 14px;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #38bdf8;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.btn.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.btn.success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.hidden {
  display: none !important;
}

.status {
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
  min-height: 0;
}

.status.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.status.info {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

#serverInfo {
  background: rgba(15, 23, 42, 0.6);
  padding: 14px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  color: #7dd3fc;
}

footer {
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 20px;
}