/* Modern admin login - brand colour #fdbf1a */
:root {
  --tl-brand: #fdbf1a;
  --tl-brand-dark: #e5a800;
  --tl-brand-soft: rgba(253, 191, 26, 0.18);
  --tl-ink: #0f172a;
  --tl-text: #334155;
  --tl-muted: #64748b;
  --tl-line: #e2e8f0;
  --tl-bg: #f8fafc;
  --tl-danger: #dc2626;
  --tl-radius: 14px;
}

body {
  margin: 0;
  background: var(--tl-bg);
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--tl-text);
  -webkit-font-smoothing: antialiased;
}

.tl-auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}

/* ---------- Left: hero ---------- */
.tl-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 90%, rgba(253, 191, 26, 0.35), transparent 45%),
    linear-gradient(180deg, rgba(9, 11, 16, 0.45) 0%, rgba(9, 11, 16, 0.92) 75%),
    url(../../img/road.jpg) center / cover no-repeat;
}

/* taxi checker strip */
.tl-checker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-conic-gradient(var(--tl-brand) 0 25%, #111 0 50%) 0 0 / 12px 12px;
}

.tl-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.tl-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tl-brand);
  box-shadow: 0 0 0 0 rgba(253, 191, 26, 0.7);
  animation: tl-pulse 1.8s infinite;
}

@keyframes tl-pulse {
  70% { box-shadow: 0 0 0 10px rgba(253, 191, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 191, 26, 0); }
}

.tl-hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.tl-hero-copy h2 span { color: var(--tl-brand); }

.tl-hero-copy p {
  max-width: 460px;
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.tl-chip svg {
  width: 16px;
  height: 16px;
  color: var(--tl-brand);
}

/* ---------- Right: form panel ---------- */
.tl-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
  background:
    radial-gradient(circle at 100% 0%, var(--tl-brand-soft), transparent 35%),
    var(--tl-bg);
}

.tl-card {
  width: 100%;
  max-width: 420px;
  animation: tl-rise 0.5s ease-out both;
}

@keyframes tl-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.tl-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-decoration: none;
}

.tl-brand img { max-height: 48px; width: auto; }

.tl-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tl-brand);
  color: #111;
  box-shadow: 0 8px 20px -8px rgba(253, 191, 26, 0.9);
}

.tl-brand-mark svg { width: 20px; height: 20px; }

.tl-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tl-ink);
}

.tl-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tl-ink);
}

.tl-subtitle {
  margin: 0 0 32px;
  font-size: 0.98rem;
  color: var(--tl-muted);
}

/* alert */
.tl-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 44px 14px 14px;
  margin-bottom: 24px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
}

.tl-alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.tl-alert .btn-close { padding: 16px; font-size: 0.7rem; }

/* fields */
.tl-field { margin-bottom: 20px; }

.tl-field label,
.tl-label-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tl-ink);
}

.tl-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tl-label-row a,
.tl-foot-link a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #b07d00;
  text-decoration: none;
}

.tl-label-row a:hover,
.tl-foot-link a:hover { color: var(--tl-ink); text-decoration: underline; }

.tl-input { position: relative; }

.tl-input > svg {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s;
}

.tl-input input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 46px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--tl-ink);
  background: #fff;
  border: 1.5px solid var(--tl-line);
  border-radius: var(--tl-radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tl-input input::placeholder { color: #a0aec0; }

.tl-input input:hover { border-color: #cbd5e1; }

.tl-input input:focus {
  border-color: var(--tl-brand);
  box-shadow: 0 0 0 4px var(--tl-brand-soft);
}

.tl-input:focus-within > svg { color: var(--tl-ink); }

.tl-input input.is-invalid {
  border-color: var(--tl-danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.tl-input .invalid-feedback {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--tl-danger);
}

.tl-eye {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.tl-eye:hover { background: #f1f5f9; color: var(--tl-ink); }
.tl-eye svg { width: 18px; height: 18px; }

/* filled in from the email link: shown locked, not editable */
.tl-input--locked input,
.tl-input--locked input:hover,
.tl-input--locked input:focus {
  color: var(--tl-muted);
  background: #f1f5f9;
  border-color: var(--tl-line);
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
}

.tl-input > svg.tl-lock { left: auto; right: 16px; }

/* reset page opened without the emailed link */
.tl-linkonly {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 8px 0 24px; padding: 16px 18px;
  background: var(--tl-brand-soft); border-radius: var(--tl-radius);
  color: var(--tl-text); font-size: 0.92rem; line-height: 1.55;
}
.tl-linkonly svg { flex: 0 0 22px; width: 22px; height: 22px; color: #a16c00; margin-top: 2px; }
.tl-linkonly p { margin: 0; }
.tl-hint { flex-wrap: wrap; }
.tl-hint a { color: var(--tl-ink); font-weight: 600; }

/* remember me */
.tl-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 28px;
  font-size: 0.9rem;
  color: var(--tl-text);
  cursor: pointer;
  user-select: none;
}

.tl-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tl-brand);
  cursor: pointer;
}

/* submit */
.tl-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  background: var(--tl-brand);
  border: 0;
  border-radius: var(--tl-radius);
  box-shadow: 0 14px 28px -14px rgba(229, 168, 0, 0.9);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.tl-submit svg { width: 18px; height: 18px; transition: transform 0.2s; }

.tl-submit:hover {
  background: var(--tl-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px rgba(229, 168, 0, 1);
}

.tl-submit:hover svg { transform: translateX(3px); }
.tl-submit:active { transform: translateY(0); }
.tl-submit:focus-visible { outline: 3px solid var(--tl-ink); outline-offset: 3px; }

.tl-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(17, 17, 17, 0.25);
  border-top-color: #111;
  border-radius: 50%;
  animation: tl-spin 0.7s linear infinite;
}

.tl-submit.is-loading { cursor: wait; opacity: 0.9; }
.tl-submit.is-loading svg { display: none; }
.tl-submit.is-loading .tl-spinner { display: inline-block; }

@keyframes tl-spin { to { transform: rotate(360deg); } }

/* back link, hints, password match (forgot / reset pages) */
.tl-back {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tl-text);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--tl-line);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tl-back svg { width: 16px; height: 16px; transition: transform 0.2s; }
.tl-back:hover { color: var(--tl-ink); border-color: var(--tl-brand); background: var(--tl-brand-soft); }
.tl-back:hover svg { transform: translateX(-3px); }

.tl-hint,
.tl-match {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--tl-muted);
}

.tl-hint svg { width: 14px; height: 14px; color: #16a34a; }
.tl-match.is-ok { color: #16a34a; font-weight: 600; }
.tl-match.is-bad { color: var(--tl-danger); font-weight: 600; }

.tl-field + .tl-submit { margin-top: 28px; }

.tl-foot-link {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--tl-muted);
}

.tl-copy {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .tl-auth { grid-template-columns: 1fr; }
  .tl-hero { display: none; }
  .tl-panel {
    padding: 88px 20px 72px;
    border-top: 6px solid var(--tl-brand);
  }
  .tl-back { top: 20px; right: 20px; }
}

@media (max-width: 420px) {
  .tl-title { font-size: 1.7rem; }
  .tl-brand { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-card, .tl-live-dot, .tl-spinner { animation: none; }
}
