/* =====================================================================
   BOS Auth — self-contained themed sign-in / sign-up screen.
   Theme by setting the --bos-* custom properties (BosAuthCard does this
   from its parameters; you can also override them in your own CSS).
   Reuses --bos-brand / --bos-brand-dark from the shell; defines its own
   neutral surface tokens so it works standalone (no bos-shell.css needed).
   ===================================================================== */
.bos-auth {
  --bos-brand: #4f46e5;
  --bos-brand-dark: #4338ca;
  --bos-surface: #f8fafc;
  --bos-card: #ffffff;
  --bos-border: #e2e8f0;
  --bos-text-strong: #0f172a;
  --bos-text: #334155;
  --bos-text-muted: #64748b;
  --bos-radius: 14px;
  --bos-font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  font-family: var(--bos-font-family);
  color: var(--bos-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  box-sizing: border-box;
  background: linear-gradient(180deg, var(--bos-surface) 0%, #eef2f7 100%);
}
.bos-auth *, .bos-auth *::before, .bos-auth *::after { box-sizing: border-box; }

.bos-auth__logo { display: inline-flex; }
.bos-auth__logo img { height: 40px; width: auto; object-fit: contain; }

.bos-auth__card {
  width: 100%;
  max-width: 400px;
  background: var(--bos-card);
  border: 1px solid var(--bos-border);
  border-radius: var(--bos-radius);
  box-shadow: 0 18px 45px rgba(77, 99, 129, 0.10);
  padding: 40px;
}

.bos-auth__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bos-text-strong);
  text-align: center;
  margin: 0 0 6px;
}
.bos-auth__subtitle {
  font-size: 0.9rem;
  color: var(--bos-text-muted);
  text-align: center;
  line-height: 1.5;
  margin: 0 0 28px;
}

.bos-auth__actions { display: flex; flex-direction: column; gap: 12px; }

.bos-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bos-auth__btn--primary { background: var(--bos-brand); color: #fff; }
.bos-auth__btn--primary:hover { background: var(--bos-brand-dark); color: #fff; }
.bos-auth__btn--secondary { background: var(--bos-card); color: var(--bos-text); border-color: var(--bos-border); }
.bos-auth__btn--secondary:hover { background: var(--bos-surface); }

.bos-auth__link {
  display: block;
  text-align: center;
  color: var(--bos-text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  margin-top: 18px;
}
.bos-auth__link:hover { color: var(--bos-brand-dark); }

.bos-auth__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--bos-text-muted);
}
.bos-auth__footer a { color: var(--bos-brand-dark); text-decoration: none; font-weight: 600; }
.bos-auth__footer a:hover { text-decoration: underline; }

.bos-auth__alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
  margin-bottom: 20px;
  text-align: center;
}
