/* Apex theme — aligned with main app index.css design tokens */

@font-face {
  font-family: "Basis Grotesque";
  src: url("/font/basis_grotesque/basis-grotesque-light-pro.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basis Grotesque";
  src: url("/font/basis_grotesque/basis-grotesque-regular-pro.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basis Grotesque";
  src: url("/font/basis_grotesque/basis-grotesque-medium-pro.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basis Grotesque";
  src: url("/font/basis_grotesque/basis-grotesque-bold-pro.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #212121;
  --foreground: #f0f0f0;
  --card: #2c2c2c;
  --card-foreground: #f0f0f0;
  --primary: #19ff75;
  --primary-foreground: #1a1a1a;
  --secondary: #363636;
  --muted-foreground: #a0a0a0;
  --destructive: #ef4444;
  --border: rgba(255, 255, 255, 0.1);
  --ring: #19ff75;
  --radius: 0.625rem;
  --font-sans: "Basis Grotesque", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--foreground);
  background: var(--background);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(25, 255, 117, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(25, 255, 117, 0.06), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.page {
  width: 100%;
  max-width: 28rem;
}

.brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: calc(var(--radius) * 1.2);
  background: var(--secondary);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 400;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6);
  padding: 2rem 1.75rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 24px 48px -12px rgba(0, 0, 0, 0.45);
}

.status-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.status-icon--success {
  background: rgba(25, 255, 117, 0.15);
  color: var(--primary);
  border: 1px solid rgba(25, 255, 117, 0.35);
  box-shadow: 0 0 24px rgba(25, 255, 117, 0.2);
}

.status-icon--error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--destructive);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card h1.success {
  color: var(--primary);
}

.card h1.error {
  color: var(--destructive);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: center;
  color: var(--muted-foreground);
}

.card p strong {
  color: var(--foreground);
  font-weight: 500;
}

.card--home p {
  text-align: left;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
