/**
 * Love & Flowers — Auth (Login)
 * Elegant floral, red/pink palette. Self-contained to login page.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --lf-bg: #fff6f8;
  --lf-card: #ffffff;
  --lf-ink: #2a0f19;
  --lf-ink-soft: rgba(42, 15, 25, 0.72);
  --lf-muted: rgba(42, 15, 25, 0.52);
  --lf-border: rgba(179, 24, 68, 0.18);

  --lf-rose-700: #9f1239;
  --lf-rose-600: #be123c;
  --lf-rose-500: #e11d48;
  --lf-pink-500: #ec4899;
  --lf-pink-400: #f472b6;
  --lf-blush: #fff0f6;

  --lf-glow: rgba(225, 29, 72, 0.18);
  --lf-shadow: rgba(42, 15, 25, 0.12);
  --lf-shadow-strong: rgba(42, 15, 25, 0.18);

  --lf-radius-xl: 28px;
  --lf-radius-lg: 20px;
  --lf-radius-md: 14px;
}

@keyframes lf-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(4px); }
}

@keyframes lf-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes lf-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html, body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--lf-ink);
  background: linear-gradient(180deg, #fff7fb 0%, var(--lf-bg) 60%, #ffffff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

/* Background ambience */
.lf-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.lf-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 90% 65% at 10% 20%, rgba(236, 72, 153, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 90% 75%, rgba(225, 29, 72, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 55% 110%, rgba(244, 114, 182, 0.10) 0%, transparent 55%);
  filter: blur(0px);
}

.lf-petals {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-image:
    radial-gradient(18px 12px at 12% 22%, rgba(225, 29, 72, 0.10) 0%, transparent 60%),
    radial-gradient(22px 14px at 78% 18%, rgba(236, 72, 153, 0.10) 0%, transparent 62%),
    radial-gradient(20px 13px at 88% 62%, rgba(244, 114, 182, 0.10) 0%, transparent 60%),
    radial-gradient(16px 11px at 22% 74%, rgba(190, 18, 60, 0.09) 0%, transparent 62%),
    radial-gradient(28px 18px at 50% 40%, rgba(225, 29, 72, 0.06) 0%, transparent 62%);
  background-repeat: no-repeat;
  animation: lf-float 16s ease-in-out infinite;
}

.lf-login {
  width: 100%;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}

.lf-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border-radius: var(--lf-radius-xl);
  overflow: hidden;
  background: var(--lf-card);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(179, 24, 68, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Left: hero */
.lf-hero {
  position: relative;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.65) 0%, transparent 40%),
    linear-gradient(155deg, rgba(225, 29, 72, 0.12) 0%, rgba(236, 72, 153, 0.10) 40%, rgba(255, 255, 255, 0.7) 100%),
    linear-gradient(135deg, #fff3f8 0%, #fff8fb 60%, #ffffff 100%);
  border-right: 1px solid rgba(179, 24, 68, 0.12);
  overflow: hidden;
}

.lf-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.06) 0%, rgba(236, 72, 153, 0.04) 35%, transparent 70%);
  animation: lf-float 18s ease-in-out infinite;
}

.lf-hero::after {
  content: "";
  position: absolute;
  bottom: -210px;
  left: -210px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.05) 0%, rgba(236, 72, 153, 0.03) 40%, transparent 72%);
  animation: lf-float 22s ease-in-out infinite;
}

.lf-hero-inner {
  position: relative;
  z-index: 1;
  animation: lf-pop 0.6s ease-out;
}

.lf-mark {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

/* Black logo on light hero background — no filter */
.lf-logo {
  display: block;
  max-width: 320px;
  width: auto;
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

.lf-monogram {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--lf-rose-600) 0%, var(--lf-pink-500) 55%, var(--lf-pink-400) 100%);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.lf-monogram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-120%);
  animation: lf-shimmer 3.2s ease-in-out infinite;
}

.lf-brand-name {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.lf-brand-name .lf-and {
  font-weight: 600;
  color: var(--lf-ink-soft);
  font-size: 0.76em;
  display: inline-block;
  margin: 0 4px;
}

.lf-brand-accent {
  color: var(--lf-rose-600);
  text-shadow: 0 24px 70px rgba(225, 29, 72, 0.22);
}

.lf-hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 24px;
}

/* Back to website link — set config('app.website_url') or APP_WEBSITE_URL */
.lf-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lf-rose-600);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(179, 24, 68, 0.2);
  background: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lf-back-link:hover {
  color: var(--lf-rose-700);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(179, 24, 68, 0.3);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.12);
}

.lf-back-link::before {
  content: "←";
  font-weight: 800;
}

/* Right: form */
.lf-form {
  padding: 56px 54px;
  background:
    radial-gradient(ellipse 85% 85% at 100% 0%, rgba(255, 240, 246, 0.9) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fff9fc 100%);
  position: relative;
}

.lf-form-inner {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: lf-pop 0.7s ease-out 0.05s both;
}

.lf-form-header h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--lf-ink);
}

.lf-form-header p {
  color: var(--lf-muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.55;
}

.lf-alert {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(225, 29, 72, 0.18);
  background: rgba(255, 240, 246, 0.7);
  color: var(--lf-ink-soft);
  font-weight: 700;
  font-size: 13px;
}

.lf-fields {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.lf-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--lf-ink-soft);
  margin-bottom: 10px;
}

.lf-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid rgba(179, 24, 68, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--lf-ink);
  font-size: 15px;
  font-weight: 650;
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.18s ease, background 0.25s ease;
}

.lf-input::placeholder {
  color: rgba(42, 15, 25, 0.42);
  font-weight: 600;
}

.lf-input:focus {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 0 0 5px var(--lf-glow);
  background: #ffffff;
}

.lf-input.is-invalid {
  border-color: rgba(225, 29, 72, 0.75);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
}

.lf-invalid {
  margin-top: 8px;
  font-size: 13px;
  color: var(--lf-rose-600);
  font-weight: 750;
}

.lf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.lf-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--lf-ink-soft);
  font-weight: 700;
  font-size: 13px;
}

.lf-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lf-rose-600);
  cursor: pointer;
}

.lf-link {
  color: var(--lf-rose-600);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.lf-link:hover,
.lf-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lf-btn {
  margin-top: 20px;
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--lf-rose-600) 0%, var(--lf-rose-500) 40%, var(--lf-pink-500) 100%);
  box-shadow: 0 18px 50px rgba(225, 29, 72, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lf-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  animation: lf-shimmer 2.8s ease-in-out infinite;
}

.lf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(225, 29, 72, 0.30);
  filter: saturate(1.05);
}

.lf-btn:active {
  transform: translateY(-1px);
}

.lf-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--lf-muted);
  font-weight: 650;
  font-size: 13px;
}

.lf-footer a {
  margin-left: 6px;
}

/* Responsive */
@media (max-width: 940px) {
  .lf-card {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .lf-hero {
    padding: 40px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(179, 24, 68, 0.12);
  }

  .lf-brand-name {
    font-size: 38px;
  }

  .lf-logo {
    max-width: 160px;
    max-height: 56px;
  }

  .lf-form {
    padding: 40px 32px;
  }

  .lf-hero-footer {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .lf-hero,
  .lf-form {
    padding: 28px 20px;
  }

  .lf-brand-name {
    font-size: 34px;
  }

  .lf-logo {
    max-width: 200px;
    max-height: 72px;
  }

  .lf-form-header h2 {
    font-size: 24px;
  }

  .lf-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
