/* ============================================================================
   LOGIN-SEITE — PREMIUM REDESIGN v2 (2026-05-30)
   Animated gradient mesh · Glassmorphism · Particles · Smooth animations
   ============================================================================ */

:root {
  --lg-red:        #d4001a;
  --lg-red-light:  #ff3349;
  --lg-red-dark:   #8b0010;

  --lg-ink:        #0b1020;
  --lg-text:       #0f172a;
  --lg-text-soft:  #475569;
  --lg-text-mute:  #64748b;
  --lg-text-dim:   #94a3b8;

  --lg-line:       #e6e9ef;
  --lg-line-soft:  #f1f3f7;
  --lg-bg:         #ffffff;
  --lg-bg-soft:    #fafbfd;

  --lg-shadow-1:   0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --lg-shadow-2:   0 8px 30px -8px rgba(15, 23, 42, .12), 0 4px 12px -4px rgba(15, 23, 42, .08);
  --lg-shadow-3:   0 24px 64px -16px rgba(15, 23, 42, .18), 0 12px 32px -8px rgba(15, 23, 42, .12);
  --lg-shadow-red: 0 16px 40px -8px rgba(212, 0, 26, .35), 0 6px 16px -4px rgba(212, 0, 26, .20);

  --lg-radius:     16px;
  --lg-radius-lg:  22px;
  --lg-radius-xl:  28px;
  --lg-trans:      all .28s cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--lg-text);
  background: var(--lg-bg-soft);
  font-feature-settings: "ss01" on, "cv11" on;
}

::selection { background: var(--lg-red); color: #fff; }

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 0, 26, .3);
}

/* =========================================================================
 * PAGE WRAP — Split layout
 * ========================================================================= */
.lg-page {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  position: relative;
}

@media (max-width: 1024px) {
  .lg-page { grid-template-columns: 1fr; }
}

/* =========================================================================
 * HERO (Left) — Animated Mesh Gradient + Particles
 * ========================================================================= */
.lg-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  color: #ffffff;
  background:
    radial-gradient(at 20% 30%, #1a1f3a 0%, transparent 50%),
    radial-gradient(at 80% 20%, #381720 0%, transparent 55%),
    radial-gradient(at 50% 100%, #d4001a 0%, transparent 55%),
    linear-gradient(135deg, #0b1020 0%, #1f1430 50%, #4a0d18 100%);
  isolation: isolate;
}

/* Animated Mesh-Gradient Layer */
.lg-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lg-hero-bg::before,
.lg-hero-bg::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: lgMeshFloat 18s ease-in-out infinite;
}
.lg-hero-bg::before {
  background: radial-gradient(circle, #ff203a 0%, transparent 70%);
  top: -240px; left: -180px;
  animation-delay: 0s;
}
.lg-hero-bg::after {
  background: radial-gradient(circle, #6d28d9 0%, transparent 70%);
  bottom: -260px; right: -180px;
  animation-delay: -9s;
}
@keyframes lgMeshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(120px, -80px) scale(1.15); }
  66% { transform: translate(-90px, 90px) scale(0.9); }
}

/* Floating Particles */
.lg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.30) 1px, transparent 2px),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.20) 1.5px, transparent 3px),
    radial-gradient(circle at 25% 78%, rgba(255, 255, 255, 0.25) 1px, transparent 2px),
    radial-gradient(circle at 72% 65%, rgba(255, 255, 255, 0.15) 2px, transparent 4px),
    radial-gradient(circle at 92% 88%, rgba(255, 255, 255, 0.20) 1.5px, transparent 3px),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.18) 1px, transparent 2px);
  pointer-events: none;
  z-index: 1;
  animation: lgParticles 30s linear infinite;
}
@keyframes lgParticles {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(-10px); }
}

/* Subtle Grid Overlay */
.lg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.lg-hero-content {
  position: relative;
  z-index: 3;
  max-width: 540px;
  animation: lgHeroEnter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lgHeroEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo Card im Hero */
.lg-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  margin-bottom: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 4px 16px rgba(0, 0, 0, 0.25);
}
.lg-logo {
  width: 48px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.30));
}
.lg-logo-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.2;
}
.lg-logo-brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1px;
  text-transform: none;
}

/* Hero Headline */
.lg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #d4001a, #b30016);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px -4px rgba(212, 0, 26, 0.50);
}
.lg-hero-eyebrow i { width: 12px; height: 12px; }

.lg-hero-h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.30);
}
.lg-hero-h1 .lg-hero-h1-accent {
  background: linear-gradient(135deg, #ff3349 0%, #ff6b80 50%, #ffd9de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 51, 73, 0.30));
}

.lg-hero-sub {
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 36px;
  max-width: 440px;
  font-weight: 400;
}

/* Feature Pills (Trust-Badges) */
.lg-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.lg-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: var(--lg-trans);
  cursor: default;
}
.lg-feature:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}
.lg-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 51, 73, 0.20), rgba(212, 0, 26, 0.15));
  border: 1px solid rgba(255, 51, 73, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #ffb0bc;
}
.lg-feature-icon i { width: 18px; height: 18px; stroke-width: 2.2; }
.lg-feature-text { min-width: 0; }
.lg-feature-text b {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.005em;
  display: block;
  margin-bottom: 1px;
}
.lg-feature-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  display: block;
}

/* Hero Footer */
.lg-hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 32px;
}
.lg-hero-foot-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.lg-hero-foot-contact a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.40);
  transition: var(--lg-trans);
  padding-bottom: 1px;
  font-weight: 600;
}
.lg-hero-foot-contact a:hover {
  border-bottom-color: #ff3349;
  color: #ff3349;
}
.lg-hero-foot-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lg-hero-foot-trust i {
  width: 13px;
  height: 13px;
  color: #6ee7b7;
}

/* =========================================================================
 * FORM-SIDE (Right) — Premium Card
 * ========================================================================= */
.lg-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(135deg, #fafbfd 0%, #f1f3f7 100%);
  position: relative;
}
.lg-form-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 80% 10%, rgba(212, 0, 26, 0.05) 0%, transparent 50%),
    radial-gradient(at 20% 90%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.lg-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius-xl);
  padding: 44px 38px 36px;
  box-shadow: var(--lg-shadow-3);
  z-index: 1;
  animation: lgCardEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes lgCardEnter {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Decorative top accent */
.lg-card::before {
  content: "";
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4001a, transparent);
  border-radius: 0 0 3px 3px;
}

.lg-card-head {
  text-align: center;
  margin-bottom: 32px;
}
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #b91c1c;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid #fecaca;
  margin-bottom: 18px;
}
.lg-eyebrow i { width: 11px; height: 11px; }
.lg-h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--lg-ink);
}
.lg-card-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--lg-text-soft);
  margin: 0;
  font-weight: 400;
}

/* Microsoft Sign-In Button — Premium */
.lg-ms-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: var(--lg-trans);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.10),
    0 8px 24px -8px rgba(15, 23, 42, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}
.lg-ms-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.15) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.lg-ms-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.15),
    0 16px 40px -8px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.lg-ms-btn:hover::before { transform: translateX(100%); }
.lg-ms-btn:active { transform: translateY(0); }
.lg-ms-btn:disabled, .lg-ms-btn.lg-loading {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.lg-ms-logo {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 5px;
  padding: 2px;
  flex-shrink: 0;
}
.lg-ms-logo svg { display: block; }
.lg-ms-text {
  position: relative;
  z-index: 1;
}
.lg-ms-arrow {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.85;
}
.lg-ms-btn:hover .lg-ms-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.lg-ms-btn.lg-loading .lg-ms-arrow {
  animation: lgSpinArrow 0.8s linear infinite;
}
@keyframes lgSpinArrow {
  to { transform: rotate(360deg); }
}

/* Alert (Errors) */
.lg-alert {
  padding: 12px 14px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fca5a5;
  border-radius: 10px;
  font-size: 13px;
  color: #7f1d1d;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: lgAlertSlide 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lgAlertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lg-alert::before {
  content: "⚠";
  flex-shrink: 0;
  font-size: 16px;
}
.lg-alert-hide { display: none; }

/* Divider with "ODER" — disabled here, kept for future use */
.lg-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--lg-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.lg-divider::before,
.lg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-line), transparent);
}

/* Secure Section */
.lg-secure {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: 12px;
  margin-top: 8px;
}
.lg-secure > i {
  width: 22px;
  height: 22px;
  color: #15803d;
  flex-shrink: 0;
  stroke-width: 2.4;
  filter: drop-shadow(0 1px 2px rgba(22, 163, 74, 0.30));
}
.lg-secure > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lg-secure b {
  font-size: 13px;
  font-weight: 700;
  color: #14532d;
  letter-spacing: -0.005em;
}
.lg-secure span {
  font-size: 11.5px;
  color: #166534;
  font-weight: 500;
}

/* Trust-Badges Row (im Card) */
.lg-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.lg-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: #ffffff;
  border: 1px solid var(--lg-line-soft);
  border-radius: 10px;
  text-align: center;
  transition: var(--lg-trans);
}
.lg-trust-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.lg-trust-item i {
  width: 18px;
  height: 18px;
  color: #4f46e5;
}
.lg-trust-item span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--lg-text-soft);
  letter-spacing: 0.02em;
}

/* Footer of card */
.lg-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--lg-line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lg-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lg-red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 7px;
  transition: var(--lg-trans);
}
.lg-help:hover {
  background: var(--lg-red);
  color: #ffffff;
}
.lg-help i { width: 14px; height: 14px; }
.lg-copyright {
  font-size: 11px;
  color: var(--lg-text-dim);
  text-align: center;
  letter-spacing: 0.01em;
  font-weight: 500;
}

/* =========================================================================
 * MOBILE
 * ========================================================================= */
@media (max-width: 1024px) {
  .lg-hero {
    padding: 36px 28px 32px;
    min-height: auto;
  }
  .lg-hero-h1 { font-size: 36px; }
  .lg-hero-sub { font-size: 14.5px; margin-bottom: 22px; }
  .lg-features { display: none; }
  .lg-hero-foot { margin-top: 18px; padding-top: 18px; }
  .lg-form-side { padding: 32px 18px; }
}
@media (max-width: 540px) {
  .lg-card { padding: 32px 22px 26px; border-radius: 18px; }
  .lg-h2 { font-size: 24px; }
  .lg-hero-h1 { font-size: 28px; }
  .lg-logo-wrap { margin-bottom: 24px; padding: 8px; }
  .lg-logo { width: 38px; }
  .lg-trust-row { grid-template-columns: 1fr 1fr; }
  .lg-trust-row .lg-trust-item:last-child { grid-column: 1 / -1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lg-hero-bg::before, .lg-hero-bg::after, .lg-hero::before { animation: none !important; }
  .lg-card, .lg-hero-content { animation: none !important; }
}
