.eg-login {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #0b132b;
  background:
    radial-gradient(820px 520px at 16% 46%, rgba(229, 37, 42, 0.055), transparent 62%),
    radial-gradient(680px 460px at 86% 28%, rgba(11, 19, 43, 0.045), transparent 64%),
    #fafbfc;
  font-family: "Inter var", Inter, "Segoe UI", system-ui, sans-serif;
}
.eg-login .loader-bg { display: none !important; }

.eg-page {
  min-height: 100vh;
}
.eg-shell {
  width: min(1240px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.eg-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 76px;
  padding-top: 8px;
}
.eg-top-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.eg-top-cta a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0b132b;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.eg-top-cta a:hover { background: #16203f; color: #fff; }

.eg-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: 36px;
  padding: 12px 0 48px;
}

.eg-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.eg-mark {
  position: absolute;
  z-index: 0;
  top: -28px;
  left: 4%;
  width: min(540px, 82%);
  pointer-events: none;
  user-select: none;
  opacity: 0.16;
}
.eg-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.eg-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.eg-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  line-height: 0;
  text-decoration: none;
}
.eg-brand img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.eg-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: #0b132b;
  font-size: 52px;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.038em;
}
.eg-lead {
  max-width: 460px;
  margin: 18px 0 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.55;
}
.eg-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 540px;
  margin: 26px 0 0;
}
.eg-values span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0b132b;
  font-size: 14px;
  font-weight: 600;
}
.eg-values i {
  color: #e5252a;
  font-size: 17px;
}
.eg-note {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 13.5px;
}
.eg-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0b132b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.eg-more:hover {
  background: #16203f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 19, 43, 0.16);
}

.eg-aside {
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}
.eg-aside::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 480px;
  height: 480px;
  right: -30px;
  top: 50%;
  transform: translateY(-52%);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.05), transparent 68%);
  pointer-events: none;
}
.eg-card {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 100%;
  padding: 38px 36px 32px;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}
.eg-kicker {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.eg-card h2 {
  margin: 0 0 26px;
  color: #0b132b;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: left;
}
.eg-field {
  position: relative;
  margin-bottom: 14px;
}
.eg-field > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
}
.eg-login .eg-card .form-control {
  height: 54px;
  min-height: 54px;
  padding: 0 16px 0 46px;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  background: #fff;
  color: #0b132b;
  font-size: 15px;
  box-shadow: none;
}
.eg-login .eg-card .eg-field:last-of-type .form-control,
.eg-login .eg-card .eg-field:has(.eg-eye) .form-control {
  padding-right: 48px;
}
.eg-login .eg-card .form-control::placeholder { color: #94a3b8; }
.eg-login .eg-card .form-control:focus {
  border-color: #e5252a;
  box-shadow: 0 0 0 4px rgba(229, 37, 42, 0.1);
}
.eg-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
}
.eg-eye:hover { color: #0b132b; background: #f4f6f8; }
.eg-eye i { font-size: 18px; line-height: 1; }

.eg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  color: #64748b;
  font-size: 13.5px;
}
.eg-login .eg-row .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding-left: 0;
  color: #64748b;
  font-size: 13.5px;
}
.eg-login .eg-row .form-check-input {
  float: none;
  margin: 0;
  width: 16px;
  height: 16px;
  border-color: #cdd5df;
}
.eg-login .eg-row .form-check-input:checked {
  background-color: #e5252a;
  border-color: #e5252a;
}
.eg-login .eg-row .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(229, 37, 42, 0.12);
}
.eg-row a {
  color: #0b132b;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.eg-row a:hover { color: #e5252a; }

.eg-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #e5252a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.eg-submit:hover { background: #c81e22; color: #fff; }

.eg-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #94a3b8;
  font-size: 12.5px;
}
.eg-or::before,
.eg-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7eaf0;
}
.eg-register {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  background: #fff;
  color: #0b132b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.eg-register:hover {
  border-color: #0b132b;
  color: #0b132b;
  background: #fafbfc;
}

@media (max-width: 1280px) {
  .eg-hero h1 { font-size: 46px; }
  .eg-mark { width: 440px; top: -8px; }
  .eg-card { width: 400px; padding: 34px 30px 28px; }
}
@media (max-width: 1024px) {
  .eg-shell { width: min(1240px, calc(100% - 40px)); }
  .eg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .eg-hero { min-height: 480px; }
  .eg-hero h1 { font-size: 40px; }
  .eg-mark { width: 360px; left: 2%; }
  .eg-card { width: 100%; }
}
@media (max-width: 820px) {
  .eg-shell { width: min(1240px, calc(100% - 32px)); }
  .eg-top { min-height: 64px; }
  .eg-split {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 32px;
  }
  .eg-hero {
    min-height: 0;
    padding: 8px 0 18px;
    overflow: hidden;
  }
  .eg-mark {
    width: 210px;
    top: -28px;
    left: auto;
    right: -12px;
    opacity: 0.12;
  }
  .eg-hero h1 { font-size: 36px; max-width: 14ch; }
  .eg-aside { justify-content: stretch; }
  .eg-aside::before { display: none; }
  .eg-card { width: 100%; }
}
@media (max-width: 480px) {
  .eg-top-cta span { display: none; }
  .eg-hero h1 { font-size: 32px; }
  .eg-card { padding: 28px 20px 22px; }
  .eg-card h2 { font-size: 22px; }
}
