/* ═══════════════════════════════════════════════════════════════════════════
   ATH | Ecosystem — pagina de intrare (RATING · CO2 · ESG)
   Paleta si tipografia sunt cele deja codificate in ecosistem: degrade
   #8b5cf6→#3b82f6, Exo 2 (display) + Inter (corp), culori de pilon
   portocaliu/verde/mov. Un singur accent tare — degradeul mov-albastru.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink:      #0f1536;   /* navy profund — titluri */
  --ink-2:    #3b4463;
  --body:     #4b5572;
  --muted:    #8891a8;
  --line:     #e6e9f3;
  --card:     #ffffff;
  --paper:    #eef1fa;

  --violet:   #8b5cf6;
  --violet-d: #6d28d9;
  --blue:     #3b82f6;
  --blue-d:   #2563eb;
  --orange:   #f97316;
  --green:    #10b981;
  --purple:   #7c3aed;

  --grad: linear-gradient(115deg, #8b5cf6 0%, #3b82f6 100%);
  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(15,21,54,.04), 0 18px 40px -22px rgba(15,21,54,.28);
  --shadow-float: 0 10px 30px -12px rgba(15,21,54,.22);
  --font-disp: 'Exo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Fundal: pânză deschisă cu două aure fine și o grilă abia vizibilă. */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(59,130,246,.14), transparent 55%),
    radial-gradient(900px 900px at 85% 110%, rgba(124,58,237,.10), transparent 60%),
    linear-gradient(180deg, #f6f8fd 0%, #eceffa 100%);
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(15,21,54,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,21,54,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(1200px 700px at 60% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(1200px 700px at 60% 30%, #000 0%, transparent 75%);
}

a { color: var(--blue-d); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Cadru ──────────────────────────────────────────────────────────────── */
.shell {
  max-width: 1480px; margin: 0 auto; padding: 46px 48px 24px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 40px; align-items: start;
}

/* ═══ Hero (stânga) ═══ */
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 40px; }
.logo { display: inline-flex; filter: drop-shadow(0 6px 14px rgba(99,102,241,.3)); }
.wordmark {
  font-family: var(--font-disp); font-weight: 700; font-size: 25px;
  color: var(--ink); letter-spacing: .01em;
}
.wordmark i { color: #c3cbe0; font-style: normal; font-weight: 400; margin: 0 2px; }

.eyebrow {
  font-family: var(--font-disp); font-weight: 600; font-size: 13px;
  letter-spacing: .34em; text-transform: uppercase; color: var(--violet-d);
  margin: 0 0 18px;
}
.headline {
  font-family: var(--font-disp); font-weight: 700; color: var(--ink);
  font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.015em;
  margin: 0 0 20px; text-transform: uppercase;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.pillars {
  font-family: var(--font-disp); font-weight: 600; font-size: 19px;
  letter-spacing: .14em; color: var(--ink-2); margin: 0 0 30px;
}
.pillars sub { font-size: .72em; }

.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 760px; margin-bottom: 36px; }
.lead p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--body); }
.lead strong { color: var(--ink); font-weight: 700; }

/* Cardurile celor 3 aplicații */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; max-width: 760px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 20px 54px; cursor: pointer;
  box-shadow: var(--shadow-card); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: currentColor; opacity: .9;
}
.c-rating { color: var(--orange); } .c-co2 { color: var(--green); } .c-esg { color: var(--purple); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px -18px rgba(15,21,54,.34); border-color: #dfe3f1; }
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 15px;
}
.t-rating { background: #fff2e8; } .t-co2 { background: #e7f8f1; } .t-esg { background: #f1ebfe; }
.card h3 { font-family: var(--font-disp); font-weight: 700; font-size: 19px; color: var(--ink); margin: 0 0 7px; }
.card h3 span { color: var(--muted); font-weight: 600; }
.card h3 sub { font-size: .72em; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.go {
  position: absolute; right: 16px; bottom: 15px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 16px; background: #fff; transition: all .16s ease;
}
.card:hover .go { background: currentColor; color: #fff; border-color: transparent; }
.c-rating:hover .go { color: #fff; background: var(--orange); }
.c-co2:hover .go { color: #fff; background: var(--green); }
.c-esg:hover .go { color: #fff; background: var(--purple); }

/* Banda „lucrează împreună" */
.band {
  display: flex; align-items: center; gap: 22px; max-width: 760px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fe 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.cube { flex-shrink: 0; filter: drop-shadow(0 8px 16px rgba(99,102,241,.22)); }
.band-text { flex: 1; min-width: 0; }
.band-text h4 { font-family: var(--font-disp); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 6px; line-height: 1.28; }
.band-text p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ═══ Dreapta — decor + login ═══ */
.side { position: relative; min-height: 760px; }
.globe { position: absolute; top: -20px; right: -40px; opacity: .9; pointer-events: none; z-index: 0; }

/* Carduri-statistică plutitoare */
.stat, .chip {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line);
  border-radius: 15px; box-shadow: var(--shadow-float); padding: 13px 16px;
}
.s-head { font-family: var(--font-disp); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.s-head sub { font-size: .8em; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.d-o { background: var(--orange); } .d-g { background: var(--green); } .d-p { background: var(--purple); }
.s-num { font-family: var(--font-disp); font-weight: 700; font-size: 30px; color: var(--ink); line-height: 1.05; margin: 7px 0 2px; }
.s-num small { font-size: .5em; color: var(--muted); font-weight: 600; }
.s-num.down { color: var(--green); }
.s-lbl { font-size: 11.5px; color: var(--muted); }
.s-ppl { display: flex; align-items: center; margin-top: 9px; }
.s-ppl i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; background: linear-gradient(135deg, #c7d2fe, #93c5fd); }
.s-ppl i:first-child { margin-left: 0; }
.s-ppl b { margin-left: 7px; font-size: 11px; color: var(--muted); font-weight: 600; }

.s-rating { top: 30px; left: 2%; }
.s-co2 { top: -16px; right: 26px; z-index: 4; }
.s-esg { bottom: 150px; right: 2%; }
.chip { display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: var(--ink-2); }
.chip b { color: var(--ink); }
.ch-data { bottom: 70px; left: 0; }
.ch-data .db { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #eef2ff, #dbeafe); flex-shrink: 0;
  background-image: radial-gradient(circle at 50% 35%, #3b82f6 2.4px, transparent 2.6px), radial-gradient(circle at 50% 65%, #8b5cf6 2.4px, transparent 2.6px); }
.ch-dir { bottom: 10px; right: 4%; font-size: 11.5px; color: var(--muted); }
.ch-dir b { color: var(--violet-d); letter-spacing: .06em; }

/* Cardul de login */
.login {
  position: relative; z-index: 3; margin-left: auto; width: 100%; max-width: 408px;
  margin-top: 62px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 32px 32px;
  box-shadow: 0 2px 4px rgba(15,21,54,.04), 0 30px 70px -30px rgba(15,21,54,.4);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.login-brand span { font-family: var(--font-disp); font-weight: 700; font-size: 18px; color: var(--ink); }
.login-brand i { color: #c3cbe0; font-style: normal; font-weight: 400; }
.login h2 { font-family: var(--font-disp); font-weight: 700; font-size: 23px; color: var(--ink); margin: 0 0 6px; }
.login .sub { margin: 0 0 22px; font-size: 14px; color: var(--muted); line-height: 1.5; }

.field {
  display: flex; align-items: center; gap: 10px; background: #f6f7fb;
  border: 1px solid #e4e8f2; border-radius: 12px; padding: 0 13px; margin-bottom: 13px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.fic { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14.5px; color: var(--ink); padding: 13px 0;
}
.field input::placeholder { color: #9aa3ba; }
.eye { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; display: inline-flex; }
.eye svg { width: 19px; height: 19px; }
.eye:hover { color: var(--ink-2); }

.row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 13px; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: var(--body); cursor: pointer; user-select: none; }
.remember input { accent-color: var(--blue); width: 15px; height: 15px; }
.forgot { font-size: 13px; }

.submit {
  width: 100%; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; color: #fff;
  padding: 14px; background: var(--grad);
  box-shadow: 0 10px 24px -8px rgba(99,102,241,.55);
  transition: transform .06s ease, box-shadow .16s ease, filter .16s ease;
}
.submit:hover { filter: brightness(1.05); box-shadow: 0 12px 28px -8px rgba(99,102,241,.6); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: .6; cursor: not-allowed; }

.notice { border-radius: 11px; padding: 11px 13px; font-size: 13px; margin-bottom: 14px; line-height: 1.45; }
.notice.err { background: #fdecec; border: 1px solid #f6cccc; color: #b4231f; }
.notice.ok { background: #e7f8f1; border: 1px solid #b7e6d2; color: #15724f; }

/* Vederea „alege aplicația" */
.applist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.app-btn {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px;
  cursor: pointer; font: inherit; transition: all .15s ease;
}
.app-btn:hover { border-color: #d7dcee; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.app-btn .ab-tile { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.app-btn .ab-name { font-family: var(--font-disp); font-weight: 700; color: var(--ink); font-size: 15px; }
.app-btn .ab-desc { font-size: 12px; color: var(--muted); }
.app-btn .ab-go { margin-left: auto; color: var(--muted); font-size: 18px; }
.logout { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 11px; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--body); }
.logout:hover { background: #f6f7fb; }

/* Subsol */
.foot { max-width: 1480px; margin: 10px auto 0; padding: 20px 48px 30px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--muted); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ── Responsiv ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; gap: 30px; padding: 32px 28px 16px; }
  .side { min-height: 0; }
  .globe, .stat, .chip { display: none; }
  .login { margin: 0 auto; max-width: 440px; }
  .lead { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .band { flex-direction: column; text-align: center; }
  .foot { flex-direction: column; gap: 12px; padding: 20px 24px 28px; }
  .shell { padding: 24px 18px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
