/* Chat TruvaLI marka katmanı (LibreChat üzerine). brand.js giriş/kayıt sayfalarında tv-* sınıflarını ekler.
   Renkler truvali.ai ile aynı: navy #071733, mavi #1360ef, açık mavi #7fa8ff, mor #7c5cff. */
@import url("fonts/sora.css");

:root {
  --tv-navy: #071733;
  --tv-navy-deep: #040d22;
  --tv-blue: #1360ef;
  --tv-blue-l: #7fa8ff;
  --tv-violet: #7c5cff;
  --tv-ink-on-dark: #ffffff;
  --tv-ink-on-dark-2: #c3d3f5;
  --tv-ink-on-dark-3: #93a8d4;
}

/* ---- uygulama geneli: LibreChat'in yeşil vurgusu yerine TruvaLI mavisi (değişkenler "R G B" üçlüsü) ---- */
html:root {
  --accent-primary: 19 96 239;         /* #1360ef */
  --accent-primary-hover: 11 63 168;   /* #0b3fa8 */
  --surface-submit: 19 96 239;
  --surface-submit-hover: 11 63 168;
}
html.dark {
  --accent-primary: 127 168 255;       /* #7fa8ff */
  --accent-primary-hover: 159 192 255;
  --surface-submit: 19 96 239;
  --surface-submit-hover: 43 116 255;
}

/* ---- giriş / kayıt / şifre sayfaları ---- */
html.tv-auth-page, html.tv-auth-page body { background: var(--tv-navy-deep); }

.tv-auth {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tv-navy-deep) 0%, var(--tv-navy) 45%, #0a1f4d 100%) !important;
}
/* yumuşak mavi-mor ışımalar; yavaşça yer değiştirir */
.tv-auth::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(34% 30% at 22% 72%, rgba(19, 96, 239, 0.62) 0%, transparent 70%),
    radial-gradient(30% 28% at 78% 26%, rgba(124, 92, 255, 0.50) 0%, transparent 70%),
    radial-gradient(26% 24% at 62% 82%, rgba(90, 160, 255, 0.28) 0%, transparent 70%),
    radial-gradient(60% 34% at 50% 108%, rgba(19, 96, 239, 0.30) 0%, transparent 70%);
  filter: blur(8px);
  animation: tv-drift 26s ease-in-out infinite alternate;
}
/* ince ızgara, kenarlara doğru kaybolur */
.tv-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
@keyframes tv-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .tv-auth::before { animation: none; } }

.tv-auth-logo { display: none !important; }

.tv-auth-main {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px;
  padding: 32px 16px;
}

.tv-card {
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.55), 0 2px 8px rgba(2, 8, 23, 0.3);
  padding: 28px 28px 20px !important;
  width: min(440px, 100%) !important;
  max-width: 440px !important;
}
.tv-card h1 { font-family: Sora, system-ui, sans-serif; letter-spacing: -0.01em; }

.tv-hero, .tv-hero-more { color: var(--tv-ink-on-dark-2); width: min(560px, 100%); }
.tv-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tv-hero__brand { display: inline-block; }
.tv-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.tv-lang button {
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  color: var(--tv-ink-on-dark-2);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.tv-lang button:hover { color: #fff; }
.tv-lang button[aria-pressed="true"] { background: #fff; color: var(--tv-navy); cursor: default; }
.tv-lang button:focus-visible { outline: 2px solid var(--tv-blue-l); outline-offset: 2px; }
.tv-hero__brand img { height: 42px; width: auto; display: block; }
.tv-hero__eyebrow {
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tv-blue-l);
}
.tv-hero__title {
  margin: 0;
  font-family: Sora, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--tv-ink-on-dark);
}
.tv-hero__title span {
  background: linear-gradient(90deg, #8fb6ff 0%, #a99bff 55%, #c3b5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tv-hero__lead { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--tv-ink-on-dark-2); }
.tv-hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tv-hero__points li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.5;
}
.tv-hero__points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9fc0ff, var(--tv-blue) 70%);
  box-shadow: 0 0 0 3px rgba(19, 96, 239, 0.18);
}
.tv-hero__points b { color: var(--tv-ink-on-dark); font-weight: 600; }
.tv-hero__note { margin: 16px 0 0; font-size: 13px; color: var(--tv-ink-on-dark-3); }
.tv-hero__links { margin: 10px 0 0; font-size: 13px; color: var(--tv-ink-on-dark-3); }
.tv-hero__links a, .tv-hero a { color: #cfe0ff; text-decoration: underline; text-decoration-color: rgba(207, 224, 255, 0.35); text-underline-offset: 3px; }
.tv-hero__links a:hover { text-decoration-color: currentColor; }

/* LibreChat'in alt bağlantıları ve tema düğmeleri koyu zeminde okunur olsun */
.tv-auth [role="contentinfo"] a { color: #cfe0ff !important; }
.tv-auth [role="contentinfo"] { color: var(--tv-ink-on-dark-3); }
.tv-auth .absolute.bottom-0.left-0 .bg-surface-primary { background: transparent !important; }
.tv-auth .absolute.bottom-0.left-0 button { color: #dbe6ff !important; }

/* telefon: marka + başlık üstte, kart ortada, maddeler altta */
@media (max-width: 1023px) {
  .tv-hero { text-align: center; }
  .tv-hero__brand img { height: 34px; margin: 0 auto; }
  .tv-hero__top { justify-content: center; flex-wrap: wrap; }
  .tv-hero__eyebrow { margin-top: 14px; }
  .tv-hero__lead { font-size: 15px; }
  .tv-hero-more { order: 3; }
}
@media (max-width: 480px) {
  .tv-card { padding: 22px 18px 16px !important; }
  .tv-hero__lead { display: none; }
}

/* geniş ekran: solda hero, sağda kart */
@media (min-width: 1024px) {
  .tv-auth-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    grid-template-areas: "hero card" "more card";
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 28px;
    align-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
  }
  .tv-hero { grid-area: hero; align-self: end; }
  .tv-hero-more { grid-area: more; align-self: start; }
  .tv-card { grid-area: card; align-self: center; }
}
