/* Glow Logistic landing — split hero + sign-in */

:root {
  --gl-teal: #14b8a6;
  --gl-teal-dim: rgba(20, 184, 166, 0.14);
  --gl-purple: #6c63ff;
  --gl-purple-dim: rgba(108, 99, 255, 0.14);
  --gl-bg: #0b0f14;
  --gl-panel: #11161d;
  --gl-border: rgba(255, 255, 255, 0.08);
  --gl-text: #eef2f7;
  --gl-muted: #8b95a8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.gl-landing {
  margin: 0;
  min-height: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gl-bg);
  color: var(--gl-text);
  -webkit-font-smoothing: antialiased;
}

.gl-shell {
  position: relative;
  display: grid;
  /* Hero fills remaining space; sign-in column capped (~26–32% on large screens) */
  grid-template-columns: 1fr minmax(300px, min(400px, 30vw));
  min-height: 100vh;
  min-height: 100dvh;
}

/* ─── Top-left brand ─── */
.gl-site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  padding: clamp(20px, 3vw, 32px);
  max-width: min(72vw, 520px);
  pointer-events: none;
}

.gl-site-header .gl-brand-link {
  pointer-events: auto;
}

.gl-brand-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gl-brand-desc {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(238, 242, 247, 0.72);
  max-width: 28ch;
}

/* ─── Hero (left ~60%) ─── */
.gl-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  z-index: 0;
}

/* Right-edge feather: hero image dissolves into sign-in panel (no hard line) */
.gl-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(56px, 12vw, 160px);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(17, 22, 29, 0.35) 42%,
    rgba(17, 22, 29, 0.82) 72%,
    var(--gl-panel) 100%
  );
}

.gl-hero-media {
  position: absolute;
  inset: 0;
  background:
    url('/landing/images/hero-bg.png') center center / cover no-repeat;
}

.gl-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 72%, rgba(17, 22, 29, 0.28) 90%, rgba(17, 22, 29, 0.78) 100%),
    linear-gradient(105deg, rgba(11, 15, 20, 0.78) 0%, rgba(11, 15, 20, 0.28) 48%, rgba(11, 15, 20, 0.12) 100%),
    linear-gradient(to top, rgba(11, 15, 20, 0.88) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(11, 15, 20, 0.45) 0%, transparent 24%);
}

.gl-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
}

.gl-hero-art {
  display: none;
}

.gl-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 56px);
  max-width: 560px;
}

.gl-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gl-teal);
}

.gl-hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gl-hero-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(238, 242, 247, 0.78);
  max-width: 44ch;
}

/* ─── Sign-in panel (right ~40%) ─── */
.gl-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: clamp(28px, 3.5vw, 40px) clamp(22px, 2.5vw, 32px);
  background: linear-gradient(
    to right,
    rgba(17, 22, 29, 0.55) 0%,
    var(--gl-panel) 10%,
    var(--gl-panel) 100%
  );
  border-left: none;
  box-shadow: none;
}

.gl-sign-in,
.gl-signed-in {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.gl-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.gl-brand-link:hover {
  opacity: 0.92;
}

.gl-logo-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(20, 184, 166, 0.25));
}

.gl-logo-text {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gl-logo-glow {
  color: var(--gl-text);
}

.gl-logo-logistic {
  color: var(--gl-teal);
}

.gl-panel-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gl-panel-lead {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gl-muted);
}

.gl-btn-block {
  width: 100%;
  margin-bottom: 10px;
}

.gl-btn-muted {
  font-size: 12px;
}

.gl-footnote {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--gl-muted);
}

.gl-footer {
  margin-top: auto;
  padding-top: 32px;
  font-size: 11px;
  color: var(--gl-muted);
}

.gl-footer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.gl-signed-in {
  animation: gl-fade-in 0.35s ease;
}

@keyframes gl-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reuse auth divider + admin panel on dark panel */
.gl-panel .auth-divider {
  color: var(--gl-muted);
}

.gl-panel .auth-divider::before,
.gl-panel .auth-divider::after {
  background: var(--gl-border);
}

.gl-panel .form-label {
  color: var(--gl-muted);
  font-size: 12px;
}

.gl-panel .form-control {
  background: #0d1218;
  border-color: var(--gl-border);
  color: var(--gl-text);
}

.gl-panel .form-control:focus {
  border-color: var(--gl-teal);
  box-shadow: 0 0 0 3px var(--gl-teal-dim);
}

.gl-panel .btn-primary {
  background: linear-gradient(135deg, var(--gl-teal), #0d9488);
  border: none;
}

.gl-panel .btn-primary:hover {
  filter: brightness(1.06);
}

.gl-panel .btn-secondary {
  background: var(--gl-purple-dim);
  border: 1px solid rgba(108, 99, 255, 0.35);
  color: #c4b5fd;
}

/* ─── Mobile: stack hero above panel ─── */
@media (max-width: 900px) {
  .gl-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .gl-hero {
    min-height: 42vh;
  }

  .gl-hero-art {
    width: 55%;
    right: -8%;
    bottom: 0;
  }

  .gl-hero::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: clamp(64px, 16vw, 140px);
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(17, 22, 29, 0.4) 40%,
      rgba(17, 22, 29, 0.88) 75%,
      var(--gl-panel) 100%
    );
  }

  .gl-panel {
    border-top: none;
    background: linear-gradient(
      to bottom,
      rgba(17, 22, 29, 0.85) 0%,
      var(--gl-panel) 12%,
      var(--gl-panel) 100%
    );
    min-height: 58vh;
    padding-top: clamp(72px, 14vw, 88px);
  }

  .gl-site-header {
    max-width: calc(100% - 32px);
  }

  .gl-brand-desc {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .gl-hero-copy {
    padding: 24px 20px;
  }

  .gl-panel {
    padding: 24px 20px 28px;
  }
}
