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

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

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

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2dd4bf 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.logo-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.description {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.6;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.2);
  border: 2px solid #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.step-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.step-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.discord-button:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.discord-button:active {
  transform: translateY(0);
}

.discord-icon {
  width: 24px;
  height: 24px;
}

.note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #5865f2;
  background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
  background: #1a1a2e;
  color: #fff;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field-warning {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fcd34d;
  line-height: 1.5;
}

.error-message {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 8px;
  color: #fca5a5;
  text-align: center;
  font-size: 0.9rem;
}

.success-message {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 8px;
  color: #86efac;
  text-align: center;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .card {
    padding: 30px 24px;
  }
  
  .logo h1 {
    font-size: 2.5rem;
  }
  
  .steps {
    gap: 8px;
  }
  
  .step-arrow {
    display: none;
  }
}

.rules-agreement {
  margin: 20px 0;
  padding: 14px 18px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
}

.rules-agreement label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.rules-agreement span {
  flex: 1;
}

.rules-agreement input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #5865F2;
  cursor: pointer;
}

.rules-agreement a {
  color: #7289da;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

.warning-box {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  color: #fbbf24;
  font-size: 0.85rem;
  text-align: center;
}

.server-link-top {
  text-align: center;
  margin-bottom: 16px;
}

.server-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.1s;
}

.server-button:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.server-button:active {
  transform: translateY(0);
}

.discord-icon-small {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.server-link {
  color: #5865F2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.server-link:hover {
  color: #7289da;
  text-decoration: underline;
}

/* Registration Closed Banner */
.closed-banner {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
}

.closed-banner h3 {
  color: white;
  margin: 0 0 15px 0;
  font-size: 1.5rem;
}

.closed-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 8px 0;
  font-size: 1rem;
}
