﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Reset & Tokens */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #3b5bdb;
  --blue-l: #4c6ef5;
  --dark:   #0b0f1a;
  --ink:    #1a2535;
  --soft:   #64748b;
  --line:   #e2e8f0;
  --font-b: "Outfit", sans-serif;
  --font:   "Inter", sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: #0d1117;
}

/* Outer Wrap */
.lp-wrap {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* Two-column Grid */
.lp-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  width: min(1160px, 100%);
  height: min(780px, calc(100vh - 24px));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

/* LEFT — Login Panel */
.lp-login {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.lp-login-inner {
  width: 100%;
  padding: 28px 32px;
}

.lp-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.lp-title {
  font-family: var(--font-b);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.lp-title span { color: var(--blue); }

.lp-sub {
  color: var(--soft);
  font-size: 0.84rem;
  margin-top: 4px;
  margin-bottom: 18px;
}

.lp-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-form { width: 100%; }

.lp-field { margin-bottom: 12px; }

.lp-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.lp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lp-input-wrap .lp-icon {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
}

.lp-input-wrap input {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0 36px 0 34px;
  font-size: 0.86rem;
  font-family: var(--font);
  color: var(--ink);
  outline: none;
  background: #f8fafc;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.lp-input-wrap input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,91,219,0.12);
}

.lp-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 0;
  line-height: 1;
}

.lp-row-check {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  font-size: 0.78rem;
  color: var(--soft);
}

.lp-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.lp-remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
  cursor: pointer;
}

.lp-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 42px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-b);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}

.lp-btn-primary:hover {
  background: var(--blue-l);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(59,91,219,0.3);
}

.lp-or {
  text-align: center;
  position: relative;
  margin: 10px 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.lp-or::before, .lp-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--line);
}
.lp-or::before { left: 0; }
.lp-or::after  { right: 0; }

.lp-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 40px;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-b);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--blue);
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s;
}

.lp-btn-outline:hover { background: #eef2ff; }

.lp-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: #78350f;
  line-height: 1.4;
}

.lp-tip-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.lp-features {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  gap: 4px;
}

.lp-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.lp-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.lp-feat span {
  font-size: 0.62rem;
  color: var(--soft);
  text-align: center;
  line-height: 1.25;
  font-weight: 500;
}

/* RIGHT — Promo Panel */
.lp-promo {
  position: relative;
  background:
    linear-gradient(180deg, rgba(7,10,20,0.72) 0%, rgba(7,10,20,0.45) 40%, rgba(7,10,20,0.85) 100%),
    url("../images/login.png") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 0;
  overflow: hidden;
}

.lp-promo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.lp-slide-counter {
  background: rgba(59,91,219,0.85);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-b);
  letter-spacing: 0.06em;
}

.lp-new-badge {
  background: rgba(15,20,30,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lp-new-badge .bi-star-fill { color: #facc15; }

.lp-carousel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
}

.lp-slide {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: lp-fade 0.45s ease;
}

.lp-slide.active { display: flex; }

@keyframes lp-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-slide h1 {
  font-family: var(--font-b);
  font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.lp-slide h1 span { color: #60a5fa; }

.lp-slide p {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 420px;
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-b);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 9px;
  align-self: flex-start;
  transition: background 0.18s, transform 0.15s;
}

.lp-cta:hover { background: var(--blue-l); color: #fff; transform: translateX(2px); }

.lp-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.lp-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}

.lp-arrow:hover { background: rgba(255,255,255,0.28); }

.lp-dots {
  display: flex;
  gap: 7px;
  flex: 1;
}

.lp-dot {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.lp-dot.active { background: var(--blue); width: 34px; }

.lp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.lp-card {
  background: rgba(15,20,35,0.75);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  backdrop-filter: blur(4px);
}

.lp-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.lp-card strong {
  display: block;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
}

.lp-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  line-height: 1.4;
}

.lp-trust {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0,0,0,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 9px 10px;
  margin: 10px -26px 0;
  flex-shrink: 0;
}

.lp-trust span {
  color: rgba(255,255,255,0.65);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.lp-trust .bi { color: rgba(255,255,255,0.45); font-size: 0.78rem; }

/* Responsive */
@media (max-width: 1024px) {
  .lp-grid { grid-template-columns: 360px 1fr; }
  .lp-login-inner { padding: 22px 24px; }
}

@media (max-width: 860px) {
  html, body { overflow: auto; }
  .lp-wrap { padding: 0; height: auto; align-items: flex-start; }
  .lp-grid { grid-template-columns: 1fr; height: auto; border-radius: 0; box-shadow: none; }
  .lp-promo { display: none; }
  .lp-login { min-height: 100vh; }
  .lp-login-inner { max-width: 420px; margin: auto; }
}

@media (max-height: 700px) {
  .lp-login-inner { padding: 14px 28px; }
  .lp-logo { width: 54px; height: 54px; margin-bottom: 6px; }
  .lp-title { font-size: 1.5rem; }
  .lp-sub { margin-bottom: 10px; }
  .lp-field { margin-bottom: 7px; }
  .lp-field label { margin-bottom: 3px; }
  .lp-input-wrap input { height: 36px; }
  .lp-btn-primary { height: 38px; }
  .lp-btn-outline { height: 36px; }
  .lp-tip { margin-top: 7px; padding: 6px 8px; }
  .lp-features { margin-top: 9px; }
  .lp-feat-icon { width: 34px; height: 34px; }
  .lp-promo { padding: 14px 18px 0; }
  .lp-slide h1 { font-size: 1.75rem; }
  .lp-cards { gap: 5px; }
  .lp-card { padding: 8px; }
}
