/*
  invite.css
  FACCO

  Copyright © 2026 Azamat Mamatov. All rights reserved.

  Styles for the invitation page, in FACCO's colors (the same values as
  the console's theme.css and the app's AppTheme), light and dark.
*/

:root {
  color-scheme: light dark;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  --facco-primary: #0d1f33;
  --facco-button: #0d529e;
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #0d1f33;
  --muted: #5b6573;
  --border: #d9dde3;
  --error-text: #a11a1a;
  --shadow: 0 12px 40px rgba(13, 31, 51, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --facco-primary: #ffffff;
    --facco-button: #3385f2;
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f2f2f7;
    --muted: #a1a1aa;
    --border: #2c2c2e;
    --error-text: #ff9b9b;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--facco-primary);
}

h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--facco-primary);
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: var(--muted);
}

.button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--facco-button);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 20px;
  cursor: pointer;
  margin-top: 24px;
}

.button:hover {
  filter: brightness(1.08);
}

.button:focus-visible {
  outline: 3px solid var(--facco-button);
  outline-offset: 2px;
}

.secondary {
  margin-top: 16px;
  font-size: 14px;
}

.error {
  color: var(--error-text);
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  body {
    padding: 16px;
    align-items: flex-start;
  }

  .card {
    margin-top: 36px;
    padding: 28px 22px;
  }
}
