/* ══════════════════════════════════════════════════════════════
   TECHLUXOR — BRAND THEME
   Colours sampled directly from the official logo artwork.
   Used by: index.php, login.php
   ══════════════════════════════════════════════════════════════ */

:root {
  /* ─── Brand blues (the "T" mark + TECH wordmark) ─── */
  --tl-blue-900: #002d85;
  --tl-blue-800: #003aa9;
  --tl-blue-700: #0051c5;
  --tl-blue-600: #0057c9;
  --tl-blue-500: #0075e7;

  /* ─── Brand oranges (the swoosh + LUXOR wordmark) ─── */
  --tl-orange-700: #f34001;
  --tl-orange-600: #fa6601;
  --tl-orange-500: #fe8e02;
  --tl-orange-400: #ffa733;

  /* ─── Accent squares from the logo ─── */
  --tl-accent-red:   #e02b20;
  --tl-accent-amber: #f7941d;
  --tl-accent-green: #22a94a;
  --tl-accent-blue:  #0d6efd;

  /* ─── Neutrals ─── */
  --tl-ink:     #232e36;
  --tl-ink-2:   #333d44;
  --tl-muted:   #5b6875;
  --tl-line:    #e3e8ef;
  --tl-bg:      #ffffff;
  --tl-bg-soft: #f6f8fb;
  --tl-card:    #ffffff;

  /* ─── Gradients ─── */
  --tl-grad-brand:  linear-gradient(135deg, var(--tl-blue-700) 0%, var(--tl-blue-500) 45%, var(--tl-orange-500) 100%);
  --tl-grad-blue:   linear-gradient(135deg, var(--tl-blue-800), var(--tl-blue-500));
  --tl-grad-orange: linear-gradient(135deg, var(--tl-orange-500), var(--tl-orange-700));

  /* ─── Elevation ─── */
  --tl-shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --tl-shadow-md: 0 4px 12px rgba(16,24,40,.08);
  --tl-shadow-lg: 0 18px 40px -12px rgba(0,58,169,.28);

  --tl-radius:    14px;
  --tl-radius-lg: 24px;

  --tl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ─── Dark mode ─── */
[data-theme="dark"] {
  --tl-ink:     #eef2f7;
  --tl-ink-2:   #d7dee7;
  --tl-muted:   #9aa7b6;
  --tl-line:    #232c3a;
  --tl-bg:      #0e131b;
  --tl-bg-soft: #141b25;
  --tl-card:    #161e29;
  --tl-shadow-lg: 0 18px 40px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

body.tl {
  margin: 0;
  font-family: var(--tl-font);
  background: var(--tl-bg);
  color: var(--tl-ink);
  -webkit-font-smoothing: antialiased;
}

/* ══════════ Typography ══════════ */
.tl-h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
.tl-h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.02em; margin: 0; }
.tl-lead { color: var(--tl-muted); font-size: 1.05rem; line-height: 1.65; }
.tl-gradient-text {
  background: var(--tl-grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ══════════ Buttons ══════════ */
.tl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.tl-btn:active { transform: scale(.97); }
.tl-btn-primary { background: var(--tl-grad-blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(0,87,201,.7); }
.tl-btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(0,87,201,.85); }
.tl-btn-accent  { background: var(--tl-grad-orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(243,64,1,.6); }
.tl-btn-wa      { background: #25D366; color: #fff; box-shadow: 0 8px 20px -8px rgba(37,211,102,.7); }
.tl-btn-wa:hover{ background: #1eb855; }
.tl-btn-ghost   { background: transparent; color: var(--tl-ink); border-color: var(--tl-line); }
.tl-btn-block   { width: 100%; }

/* ══════════ Cards ══════════ */
.tl-card {
  background: var(--tl-card);
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius-lg);
  box-shadow: var(--tl-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tl-card-hover:hover { transform: translateY(-4px); box-shadow: var(--tl-shadow-md); border-color: #cfe0f7; }

/* Thin brand bar across the top of a card */
.tl-card-topline { position: relative; overflow: hidden; }
.tl-card-topline::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--tl-grad-brand);
}

/* ══════════ Forms ══════════ */
.tl-field { margin-bottom: 1rem; }
.tl-label { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase;
            letter-spacing: .09em; color: var(--tl-muted); margin-bottom: .45rem; }
.tl-input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--tl-ink);
  background: var(--tl-bg-soft);
  border: 1.5px solid var(--tl-line); border-radius: var(--tl-radius);
  padding: .85rem 1rem; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.tl-input::placeholder { color: #9aa7b6; }
.tl-input:focus {
  outline: none; background: var(--tl-card);
  border-color: var(--tl-blue-500);
  box-shadow: 0 0 0 4px rgba(0,117,231,.14);
}
.tl-input-group { position: relative; }
.tl-input-group .tl-input { padding-right: 3rem; }
.tl-input-icon {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--tl-muted);
  padding: .5rem; border-radius: 8px; line-height: 1;
}
.tl-input-icon:hover { color: var(--tl-blue-600); background: rgba(0,117,231,.08); }

/* ══════════ Alerts ══════════ */
.tl-alert {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem 1rem; border-radius: var(--tl-radius);
  font-size: .9rem; font-weight: 600; line-height: 1.45; margin-bottom: 1rem;
}
.tl-alert-error { background: #fef2f2; color: #b42318; border: 1px solid #fecdca; }
.tl-alert-warn  { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }
.tl-alert-info  { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
[data-theme="dark"] .tl-alert-error { background: rgba(180,35,24,.14); border-color: rgba(254,205,202,.25); color: #ffb4ad; }
[data-theme="dark"] .tl-alert-warn  { background: rgba(181,71,8,.14);  border-color: rgba(254,223,137,.25); color: #ffd08a; }
[data-theme="dark"] .tl-alert-info  { background: rgba(23,92,211,.14);  border-color: rgba(178,221,255,.25); color: #9ecbff; }

/* ══════════ Badges ══════════ */
.tl-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .65rem; border-radius: 999px;
}
.tl-badge-blue   { background: rgba(0,87,201,.10);  color: var(--tl-blue-700); }
.tl-badge-orange { background: rgba(254,142,2,.14); color: var(--tl-orange-700); }
.tl-badge-green  { background: rgba(34,169,74,.12); color: #157f37; }
.tl-badge-gray   { background: rgba(91,104,117,.12);color: var(--tl-muted); }

/* ══════════ Logo pixel squares (decorative, from the mark) ══════════ */
.tl-pixels { display: inline-flex; gap: 3px; align-items: flex-end; }
.tl-pixels i { display: block; width: 7px; height: 7px; border-radius: 1px; }
.tl-pixels i:nth-child(1) { background: var(--tl-accent-red); }
.tl-pixels i:nth-child(2) { background: var(--tl-accent-amber); }
.tl-pixels i:nth-child(3) { background: var(--tl-accent-green); }
.tl-pixels i:nth-child(4) { background: var(--tl-accent-blue); }

/* ══════════ Layout helpers ══════════ */
.tl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.tl-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .tl-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tl-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.tl-divider { height: 1px; background: var(--tl-line); border: 0; margin: 1.5rem 0; }

/* Animated brand background used on the login screen */
.tl-aurora { position: relative; overflow: hidden; background: var(--tl-blue-900); }
.tl-aurora::before, .tl-aurora::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(70px); opacity: .55; animation: tl-float 22s ease-in-out infinite;
}
.tl-aurora::before { background: var(--tl-blue-500); top: -22vmax; left: -14vmax; }
.tl-aurora::after  { background: var(--tl-orange-600); bottom: -26vmax; right: -16vmax; animation-delay: -11s; }
@keyframes tl-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4vmax, -3vmax) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-aurora::before, .tl-aurora::after { animation: none; }
  .tl-card-hover:hover { transform: none; }
}
