/* Weaver Meet Gateway — minimal, fast, mobile-first */
/* Loaded by GitHub Pages at meet.weaver.edu.vn (and /j.html for the actual redirect) */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  margin: 0;
  padding: 48px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  max-width: 520px;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-align: center;
}

h1 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #0f172a;
}

p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: #334155;
}

.en {
  color: #64748b;
  font-size: 13px;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
}

a.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  background: #6366f1;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

a.btn:hover { background: #4f46e5; }

/* Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: wm-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes wm-spin { to { transform: rotate(360deg); } }

/* Error state */
#error { text-align: left; }
#error h1 { color: #dc2626; }
#error #errDetail {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 10px;
  color: #991b1b;
  font-size: 12px;
  word-break: break-word;
  margin-top: 8px;
}
