/* Fennec AI — auth screens and inline notices. */

.auth {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth__card {
  width: 100%;
  max-width: 400px;
}

.auth__brand {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  color: var(--text-strong);
}

.auth__tagline {
  margin: 0 0 32px;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
}

.auth__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  outline: 0;
}

.field input:focus {
  border-color: var(--accent);
}

.field__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: opacity 0.15s;
}

.btn:hover:not(:disabled) {
  opacity: 0.9;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.auth__switch {
  margin: 18px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
}

.auth__switch button {
  color: var(--accent);
  text-decoration: underline;
}

/* ─── notices ─────────────────────────────────────────────────────────────── */

.notice {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid transparent;
}

.notice--error {
  background: rgba(239, 65, 70, 0.08);
  border-color: rgba(239, 65, 70, 0.3);
  color: var(--danger);
}

.notice--info {
  background: rgba(16, 163, 127, 0.08);
  border-color: rgba(16, 163, 127, 0.3);
  color: var(--accent);
}

.notice--warn {
  background: rgba(224, 162, 60, 0.1);
  border-color: rgba(224, 162, 60, 0.35);
  color: #b8801f;
}

/* A banner inside the chat view — quota exhausted, unverified email, and so on. */
.banner {
  max-width: var(--content-max);
  margin: 16px auto 0;
  padding: 0 24px;
}

/* ─── responsive ──────────────────────────────────────────────────────────── */

/* The sidebar slides over the content rather than shrinking it: at this width a
   260px column plus a readable transcript does not fit. */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
  }

  .intro__cols {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .intro__title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .turn__inner,
  .composer {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 769px) {
  .menu-btn {
    display: none;
  }
}
