/*
 * Admin login page: chart panel (left) + sign-in form (right).
 * Loaded by resources/views/content/authentications/auth-login-basic.blade.php.
 * Chart image: public/assets/img/brand/login-chart.svg.
 */

.lg-page {
  display: flex;
  min-height: 100vh;
  background: var(--bs-body-bg);
}

/* ---------- Chart panel ---------- */
.lg-hero {
  position: relative;
  flex: 1 1 55%;
  display: flex;
  color: #fff;
  background: #0b1026 url('../img/brand/login-chart.svg') right bottom / cover no-repeat;
  overflow: hidden;
}

/* Darker at the top-left so the text stays readable over the chart */
.lg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 16, 38, 0.94) 0%, rgba(11, 16, 38, 0.78) 45%, rgba(11, 16, 38, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 16, 38, 0.6) 0%, rgba(11, 16, 38, 0) 40%);
}

.lg-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
  padding: 3rem 3.5rem;
}

.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.lg-brand:hover { color: #fff; }

.lg-hero-copy { max-width: 32rem; }

.lg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.lg-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: lg-pulse 1.6s infinite;
}

@keyframes lg-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 0.45rem rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.lg-headline {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.lg-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
}

.lg-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.lg-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.lg-point-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 0.65rem;
  font-size: 1.15rem;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

.lg-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lg-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.lg-point-icon i { line-height: 1; }

.lg-ticker i { color: #4ade80; font-size: 1.1rem; }

/* ---------- Form side ---------- */
.lg-form-side {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.lg-form-card {
  width: 100%;
  max-width: 25rem;
}

.lg-form-brand { margin-bottom: 1.5rem; }

.lg-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.lg-sub {
  margin-bottom: 2rem;
  color: var(--bs-secondary-color);
}

.lg-input {
  border-radius: 0.625rem;
}

.lg-input .input-group-text,
.lg-input .form-control {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.lg-input .input-group-text i { font-size: 1.15rem; color: var(--bs-secondary-color); }

.lg-input.is-invalid .input-group-text,
.lg-input.is-invalid .form-control { border-color: rgb(var(--bs-danger-rgb)); }

.lg-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: rgb(var(--bs-danger-rgb));
}

.lg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #4f46e5 0%, #6d5dfc 55%, #8b5cf6 100%);
  box-shadow: 0 0.5rem 1.25rem rgba(79, 70, 229, 0.3);
  transition: transform 0.12s, box-shadow 0.12s;
}

.lg-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 1.5rem rgba(79, 70, 229, 0.38);
}

.lg-submit i { font-size: 1.25rem; transition: transform 0.12s; }
.lg-submit:hover i { transform: translateX(3px); }

.lg-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem 0 0;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

/* ---------- Tablets and phones: chart becomes a banner on top ---------- */
@media (max-width: 991.98px) {
  .lg-page { flex-direction: column; }

  .lg-hero { flex: none; }

  .lg-hero-inner { padding: 1.75rem 1.5rem 2.25rem; gap: 1.5rem; }

  .lg-headline { margin: 1rem 0 0.5rem; }

  .lg-lead { margin-bottom: 0; font-size: 1rem; }

  .lg-points, .lg-tickers { display: none; }

  .lg-form-side {
    align-items: flex-start;
    margin-top: -1.25rem;
    padding: 0 1rem 2rem;
    position: relative;
    z-index: 2;
  }

  .lg-form-card {
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    background: var(--bs-paper-bg, #fff);
    box-shadow: 0 0.5rem 1.75rem rgba(var(--bs-body-color-rgb), 0.1);
  }

  .lg-form-brand { display: none; }
}
