/* Sol Living Vertriebs-Cockpit · b2c.sol-living.de
 * 1:1 Champion-Design — alle Farben in :root, mobile first.
 */

:root {
  --bg: #0A0506;
  --bg-card-1: rgba(20, 8, 10, 0.65);
  --bg-card-2: rgba(15, 6, 7, 0.50);
  --bg-login-1: rgba(18, 9, 10, 0.94);
  --bg-login-2: rgba(10, 5, 6, 0.98);
  --text: #EDE6E4;
  --text-strong: #F5F1EE;
  --text-muted: #BDB5B0;
  --text-faint: #948984;
  --text-dim: #7A6F6B;
  --text-grey: #5C5450;
  --accent: #FF5246;
  --accent-light: #FF6B5C;
  --accent-deep: #C9342B;
  --accent-dark: #E53935;
  --accent-shadow: #8B1A14;
  --accent-deepest: #3D0908;
  --gold: #FFD24A;
  --green: #34D399;
  --border-subtle: rgba(255, 247, 245, 0.06);
  --border-mid:    rgba(255, 247, 245, 0.15);
  --border-strong: rgba(255, 247, 245, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.display       { font-family: 'Inter', sans-serif; font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; }
.serif-italic  { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono          { font-family: 'JetBrains Mono', monospace; font-feature-settings: 'tnum'; }

/* ───── Atmosphere ───── */
.sun {
  position: absolute; top: -45%; right: -25%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, var(--accent-light) 0%, var(--accent-dark) 18%, var(--accent-shadow) 38%, var(--accent-deepest) 58%, transparent 78%);
  filter: blur(40px); opacity: 0.65; pointer-events: none; z-index: 3;
}
.sun-glow-outer {
  position: absolute; top: -25%; right: -8%;
  width: 1200px; height: 1200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.22) 0%, transparent 60%);
  filter: blur(80px); pointer-events: none; z-index: 2;
}
.energy-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.06;
  background-image:
    linear-gradient(rgba(229,57,53,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,57,53,0.4) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 80%);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───── Layout ───── */
.container { position: relative; min-height: 100vh; display: flex; flex-direction: column; z-index: 4; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 32px 48px; position: relative; z-index: 10; }
.logo { display: flex; align-items: center; }
.logo-img { height: 32px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(229,57,53,0.3)); }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.live-indicator {
  display: flex; align-items: center; gap: 12px;
  color: var(--accent-deep); font-weight: 600; font-size: 14px; letter-spacing: 0.1em;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px rgba(52,211,153,0.8);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Main */
.main {
  flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px;
  padding: 40px 80px 60px; align-items: center;
  max-width: 1700px; margin: 0 auto; width: 100%;
}

/* ───── LEFT side ───── */
.brand-side h1 { font-size: clamp(64px, 7.5vw, 116px); color: var(--text-strong); margin-bottom: 32px; }
.brand-side h1 .accent {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em; display: inline-block;
}
.brand-side .body-text { font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 600px; margin-bottom: 20px; }
.brand-side .body-text strong { color: var(--text-strong); font-weight: 600; }
.brand-side .body-text em {
  font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent-light); font-weight: 400; font-size: 1.05em;
}
.brand-side .body-text .money { color: var(--green); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 0.95em; }

/* Live Performance Cards */
.perf-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 36px 0 32px;
  max-width: 720px;
}
.perf-card {
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-card-1), var(--bg-card-2));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229,57,53,0.18);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.perf-card:hover {
  border-color: rgba(229,57,53,0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(229,57,53,0.4);
}
.perf-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.perf-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.perf-card-icon { width: 16px; height: 16px; color: var(--accent-light); }
.perf-card-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 700; color: var(--text-faint);
}
.perf-card-value {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 24px; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.perf-card-value .unit { font-size: 14px; color: var(--accent-light); margin-left: 2px; font-weight: 500; }
.perf-card-value.money { color: var(--text-strong); }
.perf-card-value.gold { color: var(--gold); }
.perf-card-sub { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.perf-card-sub strong { color: var(--text-muted); font-weight: 600; }
.perf-card-sub .hot { color: var(--accent-light); font-weight: 600; }
.perf-card-sub .green { color: var(--green); font-weight: 600; }

/* Tagline */
.tagline { border-left: 3px solid var(--accent-deep); padding-left: 18px; margin: 28px 0 32px; max-width: 600px; }
.tagline-text { font-size: 22px; color: var(--text-strong); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.tagline-accent { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent-light); font-weight: 400; font-size: 1.15em; }

/* Champion Code */
.champion-code {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 720px;
}
.code-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.code-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(229,57,53,0.8);
  animation: pulse 1.6s ease-in-out infinite;
}
.code-label > span:last-child {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 700; color: var(--accent-light);
}
.code-rules {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.code-rule { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.code-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--text-grey);
  letter-spacing: 0.1em;
}
.code-text { font-size: 14px; color: var(--text-muted); line-height: 1.3; }
.code-text strong {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text-strong);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.code-divider {
  width: 1px; height: 24px;
  background: rgba(255,247,245,0.08);
  margin: 0 8px;
}

/* ───── RIGHT side · Login Box ───── */
.login-side { display: flex; align-items: center; justify-content: center; position: relative; z-index: 5; }
.login-box {
  width: 100%; max-width: 520px; padding: 40px 44px;
  background: linear-gradient(180deg, var(--bg-login-1), var(--bg-login-2));
  border: 1px solid rgba(229,57,53,0.25); border-radius: 4px;
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  box-shadow:
    0 0 0 1px rgba(229,57,53,0.05),
    0 30px 80px -20px rgba(229,57,53,0.3),
    0 60px 120px -40px rgba(0,0,0,0.6);
  position: relative; z-index: 2;
}
.login-box::before {
  content: ''; position: absolute; inset: 0; border-radius: 4px; padding: 1px;
  background: linear-gradient(135deg, rgba(229,57,53,0.4), transparent 50%, rgba(229,57,53,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.login-title { font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; font-size: 50px; color: var(--text-strong); margin-bottom: 8px; }
.login-title-accent { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.login-sub { font-size: 13px; color: var(--text-faint); margin-bottom: 28px; line-height: 1.5; }
.login-sub strong { color: var(--text-muted); font-weight: 600; }

/* Form */
.field { margin-bottom: 22px; position: relative; }
.field-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; color: var(--text-dim); transition: color 0.15s; }
.field-label.active { color: var(--accent); }
.field-link { font-size: 11px; color: var(--text-faint); text-decoration: none; transition: color 0.15s; }
.field-link:hover { color: var(--accent-light); }
.field-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--border-mid);
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  /* 16px verhindert iOS Auto-Zoom beim Fokus */
  font-size: 16px;
  color: var(--text-strong); outline: none; transition: border-color 0.2s;
}
.field-input.active { border-bottom-color: var(--accent-deep); }
.field-input:focus { border-bottom-color: var(--accent); }
.field-input::placeholder { color: var(--text-grey); }
.field-eye {
  position: absolute; right: 0; bottom: 8px;
  background: transparent; border: none; color: var(--text-dim);
  cursor: pointer; padding: 8px; transition: color 0.15s;
}
.field-eye:hover { color: var(--text); }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; cursor: pointer; user-select: none; }
.checkbox-row input { display: none; }
.checkbox-box {
  width: 16px; height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: rgba(255,247,245,0.03);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.checkbox-row input:checked + .checkbox-box { background: var(--accent-deep); border-color: var(--accent-deep); }
.checkbox-row input:checked + .checkbox-box::after { content: '\2713'; color: white; font-size: 11px; font-weight: bold; }
.checkbox-label { font-size: 13px; color: var(--text-muted); }

.login-btn {
  width: 100%; padding: 18px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: white; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: inherit;
  cursor: pointer; transition: all 0.2s;
  box-shadow:
    0 0 0 1px rgba(255,82,70,0.3),
    0 8px 24px -6px rgba(229,57,53,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  position: relative; overflow: hidden;
}
.login-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  box-shadow:
    0 0 0 1px rgba(255,82,70,0.4),
    0 12px 32px -6px rgba(229,57,53,0.7),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.login-btn:disabled { opacity: 0.6; cursor: progress; }
.login-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.login-btn:hover:not(:disabled)::before { transform: translateX(100%); }

/* Error */
.login-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(229,57,53,0.1);
  border-left: 2px solid var(--accent);
  font-size: 12.5px;
  color: #FFB4AC;
  display: none;
}
.login-error.visible { display: block; }

/* Today's mantra */
.mantra {
  margin-top: 24px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(229,57,53,0.05), rgba(229,57,53,0.01));
  border: 1px solid rgba(229,57,53,0.15);
  border-radius: 4px;
  text-align: center;
}
.mantra-label {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 700; color: var(--accent-light); margin-bottom: 6px;
}
.mantra-text {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 16px; color: var(--text); line-height: 1.4;
}

/* ───── Bottom strip ───── */
.bottom-strip {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 80px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-grey);
  letter-spacing: 0.1em; text-transform: uppercase;
  position: relative; z-index: 5;
  background: rgba(10,5,6,0.6); backdrop-filter: blur(20px);
}
.bottom-strip a { color: var(--text-faint); text-decoration: none; transition: color 0.15s; }
.bottom-strip a:hover { color: var(--text); }
.bottom-strip .links { display: flex; gap: 28px; }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
  .main { grid-template-columns: 1fr; gap: 48px; padding: 32px; }
  .login-side { order: -1; }
  .perf-cards { grid-template-columns: 1fr; gap: 8px; }
  .bottom-strip { padding: 18px 32px; }
  .bottom-strip .links { flex-wrap: wrap; gap: 16px; }
  .code-rules { grid-template-columns: 1fr; gap: 12px; }
  .code-divider { display: none; }
}
@media (max-width: 720px) {
  .topbar { padding: 24px 20px; }
  .main { padding: 20px; }
  .login-box { padding: 32px 24px; }
  .login-title { font-size: 38px; }
  .brand-side h1 { font-size: 56px; margin-bottom: 24px; }
  .brand-side .body-text { font-size: 15px; }
  .tagline-text { font-size: 18px; }
  .topbar-right { gap: 12px; }
  .bottom-strip {
    flex-direction: column; gap: 12px; padding: 16px 20px;
    align-items: flex-start;
  }
  .sun-glow-outer { width: 600px; height: 600px; opacity: 0.6; }
}
@media (max-width: 380px) {
  .login-box { padding: 24px 20px; }
  .login-title { font-size: 32px; }
  .brand-side h1 { font-size: 44px; }
  .perf-card { padding: 14px; }
  .live-indicator { font-size: 11px; gap: 8px; }
}

/* Performance/Accessibility */
@media (prefers-reduced-motion: reduce) {
  .live-dot, .code-pulse { animation: none; }
  .login-btn::before, .perf-card { transition: none; }
}
