/* ================================================================= */
/* 0. ОБЩАЯ ТЕМНАЯ ШАПКА ДЛЯ ВСЕХ СТРАНИЦ (Главная + Кабинет)        */
/* ================================================================= */
body nav, body header, body #app > div > div:first-child {
  background-color: #0f172a !important; 
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}
body nav *, body header *, body #app > div > div:first-child * {
  color: #ffffff !important;
}

body nav button:hover, body header button:hover { background-color: #1e293b !important; }
body nav div[class*="absolute"], body header div[class*="absolute"] {
  background-color: #ffffff !important; background: #ffffff !important;
  border: 1px solid #e2e8f0 !important; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
body nav div[class*="absolute"] *, body header div[class*="absolute"] * { color: #0f172a !important; }
body nav div[class*="absolute"] button[class*="bg-"] { background-color: #1e3a8a !important; }
body nav div[class*="absolute"] button[class*="bg-"] * { color: #ffffff !important; }

/* ================================================================= */
/* 1. ГЛАВНАЯ СТРАНИЦА                                               */
/* ================================================================= */
body.gl-landing-page { 
  background: url(/custom-bg.jpg) no-repeat center bottom fixed !important; 
  background-size: cover !important; 
}

/* --- Светлый верхний блок приветствия --- */
body.gl-landing-page main > div:first-child h1, 
body.gl-landing-page main > div:first-child h2, 
body.gl-landing-page main > div:first-child p, 
body.gl-landing-page main > div:first-child span { 
  color: #0f172a !important; 
}
body.gl-landing-page main > div:first-child h1 { font-weight: 700 !important; }

/* ПОЛНОСТЬЮ СКРЫВАЕМ ССЫЛКУ "Узнайте больше" */
body.gl-landing-page main > div:first-child a { 
  display: none !important; 
}

/* --- Темный нижний блок с волнами --- */
body.gl-landing-page main > div:nth-child(n+2),
body.gl-landing-page main > section,
body.gl-landing-page [class*="bg-gray-"],
body.gl-landing-page [class*="bg-slate-"] {
  background-color: transparent !important;
}

body.gl-landing-page main > div:nth-child(n+2) h2,
body.gl-landing-page main > div:nth-child(n+2) h3,
body.gl-landing-page main > div:nth-child(n+2) p,
body.gl-landing-page main > div:nth-child(n+2) span,
body.gl-landing-page main > section h2,
body.gl-landing-page main > section h3 {
  color: #ffffff !important;
}

/* Карточки */
body.gl-landing-page .card,
body.gl-landing-page div[class*="card"],
body.gl-landing-page div[class*="shadow"] {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  border-radius: 12px !important;
}
body.gl-landing-page div[class*="shadow"] *,
body.gl-landing-page .card * { color: #ffffff !important; }
body.gl-landing-page div[class*="shadow"] svg,
body.gl-landing-page .card svg { color: #ffffff !important; stroke: #ffffff !important; fill: none !important; }

/* Кнопка Войти */
body.gl-landing-page .btn-primary,
body.gl-landing-page button[class*="bg-blue"],
body.gl-landing-page a[class*="bg-blue"] {
  background-color: #1e3a8a !important; color: #ffffff !important;
  display: inline-flex !important; /* Возвращаем видимость кнопке, так как выше скрыли все ссылки a */
}


/* ================================================================= */
/* 2. ВНУТРЕННИЙ КАБИНЕТ                                             */
/* ================================================================= */
body.gl-internal-page { background-color: #f8fafc !important; }

body.gl-internal-page main .text-gray-500,
body.gl-internal-page main button:not(.btn-primary),
body.gl-internal-page main a:not(.btn-primary),
body.gl-internal-page main span,
body.gl-internal-page main p { color: #64748b !important; }

body.gl-internal-page main .border-blue-500,
body.gl-internal-page main [aria-current="page"] { color: #1e3a8a !important; border-color: #1e3a8a !important; }

body.gl-internal-page main label,
body.gl-internal-page main form label,
body.gl-internal-page main h2,
body.gl-internal-page main h1 { color: #1e293b !important; font-weight: 600 !important; }

body.gl-internal-page main section div div div.shadow,
body.gl-internal-page main div.bg-white,
body.gl-internal-page main fieldset {
  background-color: #ffffff !important; border: 1px solid #e2e8f0 !important;
}

/* --- ИСПРАВЛЕНИЕ ПОЛЯ ВВОДА ДЛЯ ГОСТЕЙ --- */
body.gl-landing-page input,
body.gl-landing-page .card input,
body.gl-landing-page div[class*="shadow"] input {
  background-color: #f1f5f9 !important; /* Приятный светло-серый фон поля */
  color: #0f172a !important; /* Контрастный темно-синий текст */
  border: 1px solid #94a3b8 !important; /* Аккуратная рамка */
}

/* Возвращаем нормальный цвет для подсказки (placeholder), если она есть */
body.gl-landing-page input::placeholder {
  color: #64748b !important;
}
