/* app.kubecrow.com's own pages. Fonts, colours, header, footer, buttons, cards, copy boxes and install steps come from
   shared.css, the same file kubecrow.com uses (copied from kubecrow-website by scripts/sync-shared.mjs). */

/* A soft glow behind the centred column (shared.css keeps the footer at the bottom). */
body {
  background: radial-gradient(ellipse at 50% -10%, var(--glow), transparent 60%), var(--bg); background-attachment: fixed;
}
.shell { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; display: grid; gap: 16px; align-content: center; }
.shell.wide { max-width: 1120px; }
.shell h1 { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.shell h2 { font-size: 19px; line-height: 1.2; }
.lede { color: var(--muted); }
.muted { overflow-wrap: anywhere; }
.small { font-size: 13px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.danger { color: var(--danger); }

/* Cards here are the page's content: a column with a shadow, sliding in. */
.shell .card { padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); animation: rise 0.35s ease-out both; }
:where(.shell .card) > p { margin-top: 0; font-size: inherit; color: inherit; }
/* Slide only, no fade: content must stay visible even where animations don't run (hidden tabs, previews). */
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }

/* ── Sign-in providers ── */
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f8faff; box-shadow: 0 6px 18px rgb(0 0 0 / 0.15); }
.btn-github { background: #24292f; color: #fff; border-color: #4b535d; }
.btn-github:hover { background: #32383f; box-shadow: 0 6px 18px rgb(0 0 0 / 0.2); }
.providers { display: grid; gap: 10px; }
.btn-google.loading, .btn-github.loading { pointer-events: none; opacity: 0.85; }
.btn-google.loading svg, .btn-github.loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sign-in: product showcase + card ── */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.showcase { display: grid; gap: 16px; }
.showcase .eyebrow { margin: 0; }
.showcase h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.perks svg { color: var(--ok); flex: none; }
.shot { margin: 8px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #0d1628; }
.shot img { display: block; width: 100%; height: auto; }
.auth-card { text-align: left; }
.notice { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); font-size: 14px; }

/* ── Avatars and the account menu (in the header) ── */
.account-slot { display: flex; align-items: center; }
.avatar { display: block; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.lg { width: 72px; height: 72px; }
.avatar.sm { width: 32px; height: 32px; }
.initials { display: grid; place-items: center; background: var(--accent-strong); color: #fff; font-weight: 700; }
.initials.lg { font-size: 24px; }
.initials.sm { font-size: 13px; }
.avatar-wrap { position: relative; display: block; flex: none; }
.avatar-wrap.lg { width: 72px; height: 72px; }
.avatar-wrap.sm { width: 32px; height: 32px; }
.avatar-wrap .photo { position: absolute; inset: 0; }

.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-raised); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--bg-hover); }
.user-name { font-size: 14px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 240px; padding: 8px; display: grid; gap: 2px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.menu-who { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 14px; }
.menu-who span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; font: 14px var(--font); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg-hover); }

/* ── Account ── */
.who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.who > div { min-width: 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sunken); min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head img { flex: none; }
.notes { padding: 16px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--border); display: grid; gap: 8px; }
.notes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.notes a { font-size: 14px; }
.steps .cmd { margin-top: 10px; }
.danger-zone { text-align: center; font-size: 13px; }

/* ── Delete ── */
.removes { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.confirm-delete { display: grid; gap: 10px; }
.confirm-delete label { font-size: 14px; }
.confirm-delete input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-sunken); color: var(--fg); font: 15px var(--mono); letter-spacing: 0.08em; }
/* Error pages use shared.css's .error-card; inside the column it needs no margin of its own. */
.shell .error-card { margin: 0 auto; width: 100%; }

/* Desktop-app sign-in and signed-in Macs. */
.desktop-auth { text-align: center; justify-items: center; gap: 14px; }
.desktop-auth .who { text-align: left; }
.devices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sunken); }
.devices li > div { display: grid; min-width: 0; }

/* ── Small screens ── */
@media (max-width: 860px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .auth-card { order: -1; }
  .showcase .shot { display: none; }
}
@media (max-width: 480px) {
  .shell .card { padding: 22px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .user-name { display: none; }
  .user-menu summary { padding: 4px; }
  /* Room for the logo, the account menu and Download. */
  .site-header .wrap .btn { padding: 8px 12px; }
}
