:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning-bg: #fff7ed;
  --warning-border: #fdba74;
  --warning-text: #c2410c;
  --text: #1f2937;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 50%, #f5f7fb 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  line-height: 1.6;
}

.card {
  background: var(--card-bg);
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
  padding: 40px 32px;
  text-align: center;
}

.logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 20px;
}

.title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.title span {
  color: var(--primary);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--warning-text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.message {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.message strong {
  color: var(--text);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.download-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.download-btn:active {
  transform: translateY(1px);
}

.download-icon {
  font-size: 1.2rem;
}

.password-box {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.password-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.password-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.password-value {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  background: #fff;
  border: 1px dashed #cbd5e1;
  padding: 8px 16px;
  border-radius: 8px;
}

.copy-btn {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.login-note {
  margin-top: 26px;
  text-align: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.92rem;
  padding: 14px 18px;
  border-radius: 12px;
}

.login-note strong {
  color: #14532d;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}

.footer {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .card {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .title {
    font-size: 1.35rem;
  }

  .password-value {
    font-size: 1.1rem;
  }
}
