/* ═══════════════════════════════════════════════════════════════════
   AXVERO — Keycloak welcome page
   Standalone CSS (no Tailwind / no shadcn), mirrors the SPA auth look.
   Dark warm palette + Newsreader serif + orange accent.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --auth-bg:       #0b0f1a;
  --auth-bg-2:     #0f1523;
  --auth-bg-3:     #131a2a;
  --auth-ink:      #f5f3ee;
  --auth-ink-2:    rgba(245, 243, 238, 0.72);
  --auth-ink-3:    rgba(245, 243, 238, 0.48);
  --auth-ink-4:    rgba(245, 243, 238, 0.22);
  --auth-rule:     rgba(245, 243, 238, 0.08);
  --auth-rule-2:   rgba(245, 243, 238, 0.14);
  --auth-accent:   #e85d3a;
  --auth-accent-2: #f7a88d;
  --auth-font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --auth-font-mono: 'Geist Mono', ui-monospace, monospace;
  --auth-font-serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--auth-bg);
  color: var(--auth-ink);
  font-family: var(--auth-font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv01';
}

body.auth-root {
  min-height: 100svh;
  position: relative;
  overflow-x: clip;
}

/* Subtle grid pattern — masked so it fades out */
body.auth-root::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--auth-rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--auth-rule) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

/* Warm orange glow at the bottom */
body.auth-root::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 100%,
    rgba(232, 93, 58, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

body.auth-root > * { position: relative; }

/* ─── Shell ────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 48px 24px 40px;
}

.auth-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.auth-brand img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(232, 93, 58, 0.3));
}

/* ─── Welcome card ─────────────────────────────────────────────── */
.welcome-card {
  background: var(--auth-bg-2);
  border: 1px solid var(--auth-rule-2);
  border-radius: 10px;
  padding: 48px 40px 44px;
  width: 100%;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.welcome-heading {
  font-family: var(--auth-font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--auth-ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.welcome-heading em {
  font-style: italic;
  color: var(--auth-accent-2);
}

.welcome-lede {
  font-size: 16px;
  color: var(--auth-ink-2);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--auth-accent);
  color: var(--auth-ink);
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: filter 0.15s;
}
.welcome-cta:hover {
  filter: brightness(1.08);
  color: var(--auth-ink);
  text-decoration: none;
}
.welcome-cta-arrow {
  transition: transform 0.15s;
}
.welcome-cta:hover .welcome-cta-arrow {
  transform: translateX(3px);
}

/* ─── Footer ───────────────────────────────────────────────────── */
.auth-footbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  width: 100%;
  margin: 56px auto 0;
  font-family: var(--auth-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-ink-3);
  gap: 20px;
  flex-wrap: wrap;
}
.auth-footbar a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-footbar a:hover { color: var(--auth-ink); }
.auth-footbar .sep {
  color: var(--auth-ink-4);
  margin: 0 10px;
}

@media (max-width: 520px) {
  .welcome-card {
    padding: 36px 24px 32px;
  }
  .auth-footbar {
    justify-content: center;
    text-align: center;
  }
}
