:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #0066cc;
  --primary-dark: #004a99;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Assistant", "Alef", system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-color: #f5f7fb;
  background-image: url("/images/B.jpeg");
  background-repeat: no-repeat;
  background-position: center 48px;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding-top: 40px;
}

.portal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 16px;
  padding: 32px 16px 40px;
  position: relative;
  z-index: 1;
}

.portal-card {
  background: rgba(255, 255, 255, 0.9);
  width: min(720px, 100%);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.portal-header h1 {
  margin: 4px 0 0;
  font-size: 32px;
}

.portal-header .subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}

.status {
  margin: 20px 0;
  padding: 14px 16px;
  background: #f1f5f9;
  color: var(--muted);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

button,
.portal-link {
  font: inherit;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.primary,
.portal-link.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.25);
}

button.ghost,
.portal-link.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

button:active,
.portal-link:active {
  transform: translateY(1px);
}

.route-list {
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.route-list dt {
  font-weight: 700;
}

.route-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.auth-bubble {
  width: min(400px, 100%);
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.auth-bubble h2 {
  margin: 4px 0;
  font-size: 22px;
}

.auth-bubble .subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 460px;
}

.auth-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-actions .primary {
  min-width: 180px;
  justify-content: center;
}

@media (max-width: 640px) {
  .portal-shell {
    align-items: stretch;
  }

  .auth-bubble {
    width: 100%;
  }
}
