/* ============================================================
   FilialPlaner – login.css
   Landing page with integrated login
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */

.lp-page {
  min-height: 100vh;
  display: flex;
  background: var(--fp-bg);
  font-family: var(--fp-font);
  overflow: hidden;
}

/* ── Hero (left column) ───────────────────────────────────── */

.lp-hero {
  flex: 1 1 55%;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #0c2447 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.lp-hero::before,
.lp-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.lp-hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  top: -140px;
  right: -140px;
}

.lp-hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.18) 0%, transparent 70%);
  bottom: -120px;
  left: -80px;
}

/* Hintergrundbild aus dem Landingpage-Editor (das Bild selbst wird per
   Inline-<style> in login.php je Orientierung gesetzt). Hier nur die
   Lesbarkeits-Anpassungen, damit der weiße Text über Fotos klar bleibt. */
.lp-hero--has-bg .lp-headline h1,
.lp-hero--has-bg .lp-headline p,
.lp-hero--has-bg .lp-features__text,
.lp-hero--has-bg .lp-brand__name {
  text-shadow: 0 1px 12px rgba(2, 6, 23, 0.55);
}

.lp-hero--has-bg::before,
.lp-hero--has-bg::after {
  opacity: 0.5;
}

/* Brand */
.lp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
  position: relative;
  z-index: 1;
}

.lp-brand__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.lp-brand__icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Headline */
.lp-headline {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.lp-headline h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lp-headline h1 .lp-headline__accent {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-headline p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: #94a3b8;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0;
}

/* Feature list */
.lp-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.lp-features__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.lp-features__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.lp-features__check svg {
  width: 12px;
  height: 12px;
  color: #60a5fa;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-features__text {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.lp-features__text strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Footer */
.lp-hero-footer {
  margin-top: auto;
  padding-top: clamp(2rem, 4vh, 3rem);
  position: relative;
  z-index: 1;
}

.lp-hero-footer__links {
  display: flex;
  gap: 1.25rem;
}

.lp-hero-footer__links a {
  font-size: 0.8125rem;
  color: #475569;
  text-decoration: none;
  transition: color var(--fp-transition);
}

.lp-hero-footer__links a:hover {
  color: #94a3b8;
}

/* ── Login panel (right column) ───────────────────────────── */

.lp-panel {
  flex: 0 0 min(460px, 44%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--fp-bg);
  position: relative;
}

.lp-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--fp-bg-soft) 0%, var(--fp-bg) 100%);
  pointer-events: none;
}

.lp-form-card {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

/* Form header */
.lp-form-header {
  margin-bottom: 2rem;
}

.lp-form-header h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--fp-text);
  letter-spacing: -0.02em;
  margin: 0 0 0.375rem;
}

.lp-form-header p {
  font-size: 0.9375rem;
  color: var(--fp-text-secondary);
  margin: 0;
}

/* Alert overrides in panel */
.lp-panel .fp-alert {
  margin-bottom: 1.25rem;
  border-radius: var(--fp-border-radius);
}

/* Form styling */
.lp-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.lp-login-form .fp-form-group {
  margin: 0;
}

.lp-login-form .fp-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-text);
  margin-bottom: 6px;
}

.lp-login-form .fp-input {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  background: var(--fp-bg-card);
  border: 1.5px solid var(--fp-border);
  border-radius: var(--fp-border-radius);
  font-size: 0.9375rem;
  color: var(--fp-text);
  outline: none;
  transition: border-color var(--fp-transition), box-shadow var(--fp-transition);
  box-sizing: border-box;
}

.lp-login-form .fp-input:focus {
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lp-login-form .fp-input::placeholder {
  color: var(--fp-text-muted);
}

/* Submit button */
.lp-submit {
  width: 100%;
  height: 46px;
  background: var(--fp-primary);
  color: #fff;
  border: none;
  border-radius: var(--fp-border-radius);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--fp-transition), transform var(--fp-transition), box-shadow var(--fp-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  margin-top: 0.25rem;
}

.lp-submit:hover {
  background: var(--fp-primary-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.lp-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.lp-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Demo credentials */
.lp-demo {
  margin-top: 1.75rem;
  border-top: 1px solid var(--fp-border);
  padding-top: 1.25rem;
}

.lp-demo summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fp-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.lp-demo summary::marker,
.lp-demo summary::-webkit-details-marker {
  display: none;
}

.lp-demo summary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--fp-transition);
  flex-shrink: 0;
}

.lp-demo[open] summary svg {
  transform: rotate(90deg);
}

.lp-demo summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  border-radius: 4px;
  outline-offset: 2px;
}

.lp-demo__body {
  padding-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--fp-text-secondary);
}

.lp-demo__body p {
  margin: 0 0 0.625rem;
}

.lp-demo__body strong {
  color: var(--fp-text);
  font-weight: 600;
}

.lp-demo__table {
  width: 100%;
  border-collapse: collapse;
}

.lp-demo__table th,
.lp-demo__table td {
  padding: 5px 0;
  text-align: left;
  border-bottom: 1px solid var(--fp-border);
  vertical-align: middle;
}

.lp-demo__table th {
  font-weight: 600;
  color: var(--fp-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-demo__table td:last-child {
  text-align: right;
  font-family: var(--fp-font-mono);
  font-size: 0.75rem;
  color: var(--fp-text-secondary);
}

.lp-demo__table tr:last-child td {
  border-bottom: none;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 860px) {
  .lp-page {
    flex-direction: column;
    overflow: auto;
  }

  .lp-hero {
    flex: none;
    padding: 2.5rem 1.75rem 2rem;
  }

  .lp-hero::before {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -80px;
  }

  .lp-hero::after {
    display: none;
  }

  .lp-headline h1 {
    font-size: 1.75rem;
  }

  .lp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
  }

  .lp-hero-footer {
    display: none;
  }

  .lp-panel {
    flex: none;
    padding: 2.5rem 1.75rem 3rem;
  }

  .lp-panel::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .lp-hero {
    padding: 2rem 1.25rem 1.75rem;
  }

  .lp-features {
    grid-template-columns: 1fr;
  }

  .lp-panel {
    padding: 2rem 1.25rem 2.5rem;
  }
}

/* ── Entrance animations ──────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .lp-brand,
  .lp-headline,
  .lp-features,
  .lp-form-card {
    animation: lp-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .lp-headline { animation-delay: 0.06s; }
  .lp-features { animation-delay: 0.12s; }
  .lp-form-card { animation-delay: 0.08s; }

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