:root {
  --login-blue: #2B9BFF;
  --login-orange: #E85D04;
  --login-ink: #f8fafc;
  --login-muted: #94a3b8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.login-page {
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--login-ink);
  background:
    url("../images/login-bg.png") left center / cover no-repeat fixed,
    #050a18;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .95fr);
  gap: 1.5rem;
  padding: 1.75rem 2rem 1.5rem;
  align-items: stretch;
}

.login-promo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .5rem .5rem 1rem;
  max-width: 560px;
}

.promo-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 72px;
}
.promo-brand img,
.promo-brand .brand-logo {
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(43,155,255,.4));
}
.promo-brand strong,
.card-brand strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: .14em;
  font-weight: 800;
  color: #7dd3fc;
}
.promo-brand small,
.card-brand small {
  color: #fb923c;
  letter-spacing: .18em;
  font-size: .62rem;
  font-weight: 700;
}
.brand-hex {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fb923c, #ea580c 45%, #2B9BFF);
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(234,88,12,.35);
}
.brand-hex.sm { width: 38px; height: 38px; font-size: 1.15rem; }

.promo-copy { margin-top: 3.5rem; }
.promo-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.promo-copy h1 span {
  color: #7dd3fc;
  text-shadow: 0 0 28px rgba(125,211,252,.45);
}
.promo-copy p {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  color: rgba(226,232,240,.82);
  font-size: .98rem;
  line-height: 1.55;
}

.promo-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem 1.75rem;
  margin: 2.2rem 0 1.5rem;
}
.feat {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.feat-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.feat-text span {
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.feat-ico {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: rgba(8,14,28,.85);
  border: 1.5px solid transparent;
  position: relative;
  flex-shrink: 0;
}
.feat-ico.blue {
  color: #7dd3fc;
  border-color: rgba(56,189,248,.85);
  box-shadow:
    0 0 0 1px rgba(56,189,248,.2),
    0 0 18px rgba(43,155,255,.55),
    inset 0 0 14px rgba(43,155,255,.2);
}
.feat-ico.orange {
  color: #fdba74;
  border-color: rgba(251,146,60,.9);
  box-shadow:
    0 0 0 1px rgba(251,146,60,.2),
    0 0 18px rgba(232,93,4,.55),
    inset 0 0 14px rgba(232,93,4,.18);
}
.feat-ico.purple {
  color: #d8b4fe;
  border-color: rgba(192,132,252,.9);
  box-shadow:
    0 0 0 1px rgba(168,85,247,.22),
    0 0 18px rgba(168,85,247,.5),
    inset 0 0 14px rgba(168,85,247,.2);
}

.promo-trust p {
  margin: 0 0 .65rem;
  color: var(--login-muted);
  font-size: .82rem;
}
.avatars {
  display: flex;
  align-items: center;
}
.avatars span,
.avatars em {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .65rem; font-weight: 700;
  border: 2px solid #0b1224;
  margin-left: -.45rem;
  background: linear-gradient(135deg, #2B9BFF, #60a5fa);
  color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #E85D04, #fb923c); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #10b981, #34d399); }
.avatars em {
  background: #111827;
  color: #7dd3fc;
  font-style: normal;
  font-size: .62rem;
  width: auto;
  min-width: 40px;
  padding: 0 .45rem;
  border-radius: 999px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem 0 2.5rem;
}

.login-card {
  width: min(420px, 100%);
  padding: 1.85rem 1.7rem 1.5rem;
  border-radius: 22px;
  position: relative;
  background:
    linear-gradient(160deg, rgba(12,20,40,.78), rgba(8,14,28,.82)) padding-box,
    linear-gradient(145deg, rgba(43,155,255,.95), rgba(43,155,255,.15) 35%, rgba(232,93,4,.2) 65%, rgba(251,146,60,.95)) border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 25px 60px rgba(0,0,0,.45),
    0 0 40px rgba(43,155,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  min-height: 64px;
}
.card-brand img,
.card-brand .brand-logo {
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(43,155,255,.35));
}

.login-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
}
.login-card .sub {
  margin: .4rem 0 1.25rem;
  text-align: center;
  color: var(--login-muted);
  font-size: .88rem;
}

.login-alert {
  background: rgba(239,68,68,.14);
  border: 1px solid rgba(239,68,68,.35);
  color: #fecaca;
  border-radius: 12px;
  padding: .7rem .85rem;
  font-size: .84rem;
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: #cbd5e1;
}
.field {
  position: relative;
  margin-bottom: .95rem;
}
.field > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.15rem;
  pointer-events: none;
}
.field input {
  width: 100%;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(7,12,24,.72);
  color: #fff;
  border-radius: 12px;
  padding: .85rem 2.6rem .85rem 2.55rem;
  font-size: .92rem;
  font-family: inherit;
  outline: none;
  transition: .2s;
}
.field input::placeholder { color: #64748b; }
.field input:focus {
  border-color: rgba(43,155,255,.55);
  box-shadow: 0 0 0 4px rgba(43,155,255,.15);
}
.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border-radius: 8px;
}
.toggle-pass:hover { color: #e2e8f0; background: rgba(255,255,255,.05); }

.form-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -.25rem 0 1.15rem;
}
.forgot {
  color: #7dd3fc;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.forgot:hover { text-decoration: underline; }

.btn-signin {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: .95rem 1rem;
  font-size: .98rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: linear-gradient(135deg, #3ba7ff, #1f7fe0);
  box-shadow: 0 12px 28px rgba(43,155,255,.35);
  transition: .2s;
}
.btn-signin i { font-size: 1.25rem; }
.btn-signin:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.signup-hint {
  margin: 1.15rem 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: .82rem;
}
.signup-hint a {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: none;
}
.signup-hint a:hover { text-decoration: underline; }

.login-slogan {
  position: absolute;
  right: .75rem;
  bottom: .15rem;
  pointer-events: none;
}
.slogan-frame {
  position: relative;
  padding: .35rem .5rem .55rem .25rem;
  transform: rotate(-6deg);
  text-align: left;
}
.slogan-frame::before { content: none; display: none; }
.slogan-frame span {
  display: block;
  font-family: "Dancing Script", cursive;
  font-weight: 600;
  color: #e8eef7;
  text-shadow: none;
  line-height: 1.05;
  letter-spacing: .02em;
}
.slogan-frame .line1 {
  font-size: 1.55rem;
  margin-left: 0;
  padding-left: 0;
}
.slogan-frame .line2 {
  font-size: 1.85rem;
  margin: .12rem 0 .08rem 1.35rem;
  padding-left: 0;
}
.slogan-frame .line3 {
  font-size: 2.15rem;
  margin-left: .55rem;
  white-space: nowrap;
  padding-left: 0;
}
.slogan-swoosh {
  display: block;
  width: 210px;
  height: 26px;
  margin: -.05rem 0 0 .35rem;
  filter: drop-shadow(0 0 8px rgba(249,115,22,.75));
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .login-promo {
    max-width: none;
    padding: 0 0 .5rem;
  }
  .promo-copy { margin-top: 1.5rem; }
  .promo-copy h1 { font-size: 2.2rem; }
  .promo-trust { display: none; }
  .login-slogan { position: static; margin-top: 1.25rem; display: flex; justify-content: center; }
  .slogan-frame { transform: rotate(-4deg); }
}
