/* GroupsSUITE corporate identity tokens. */
:root {
  --ink: #0f172a;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --indigo-dark: #4f46e5;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --paper-line: #e2e8f0;
  --t-900: #0f172a;
  --t-700: #334155;
  --t-600: #475569;
  --t-400: #94a3b8;
  --r: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper-soft);
  color: var(--t-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header / wordmark */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}
.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--t-900);
}
.wordmark .wm-suite { color: var(--indigo); }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.user-email { color: var(--t-600); font-size: .9rem; }

.site-main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r);
  padding: 2rem;
}

/* Flash */
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .95rem; }
.flash-alert { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.flash-notice { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Auth */
.auth-card, .guest-card { max-width: 420px; margin: 3rem auto; }

/* Brand logo (same logo.png as the groupssuite-website repo).
   Rendered as a background image so a missing file degrades gracefully
   (no broken-image icon) until public/logo.png is added. */
.brand-logo {
  width: 200px;
  height: 52px;
  margin: 0 auto 1.5rem;
  background: url("/logo.png") center / contain no-repeat;
}

.auth-title { margin: 0 0 .25rem; font-size: 1.5rem; font-weight: 700; color: var(--t-900); }
.auth-subtitle {
  margin: 0 0 1.5rem;
  color: var(--t-600);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
}
.auth-form { display: flex; flex-direction: column; }
.field-label { font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--t-700); }
.field-input {
  padding: .65rem .75rem;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--t-900);
  margin-bottom: 1.1rem;
}
.field-input::placeholder { color: var(--t-400); }
.field-input:focus { outline: 2px solid var(--indigo-light); border-color: var(--indigo-light); }
.auth-foot { margin: 1.25rem 0 0; font-size: .9rem; }
.auth-foot a { color: var(--indigo); text-decoration: none; }
.auth-foot a:hover { color: var(--indigo-dark); text-decoration: underline; }

/* Buttons */
.btn-primary {
  appearance: none;
  border: none;
  background: var(--indigo);
  color: #fff;
  padding: .7rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-primary:hover { background: var(--indigo-dark); }
.btn-link {
  appearance: none;
  background: none;
  border: 1px solid var(--paper-line);
  color: var(--t-700);
  padding: .4rem .8rem;
  border-radius: 10px;
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
}
.btn-link:hover { background: var(--paper-soft); }

/* Launcher */
.launcher-title { margin: 0 0 .25rem; font-size: 1.6rem; font-weight: 700; }
.launcher-subtitle {
  margin: 0 0 1.75rem;
  color: var(--t-600);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--t-900);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.tile:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, .12);
  transform: translateY(-2px);
  border-color: var(--indigo-light);
}
.tile-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--accent);
}
.tile-name { font-weight: 700; font-size: 1.05rem; }
.tile-desc { color: var(--t-600); font-size: .9rem; margin-top: .35rem; }

.empty-state { color: var(--t-600); }
