:root {
    --ep-bg: #060f20;
    --ep-bg-2: #07162e;
    --ep-panel: rgba(7, 19, 40, 0.8);
    --ep-panel-2: rgba(8, 22, 45, 0.88);
    --ep-line: rgba(132, 169, 255, 0.14);
    --ep-line-strong: rgba(132, 169, 255, 0.22);
    --ep-text: #ebf2ff;
    --ep-muted: #a7b8d8;
    --ep-blue: #49bbff;
    --ep-blue-2: #356dff;
    --ep-cyan: #6ef0ff;
    --ep-danger: #ff738f;
    --ep-success: #5be8a8;
    --ep-radius-xl: 24px;
    --ep-radius-lg: 18px;
    --ep-radius-md: 14px;
    --ep-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body.entry-page {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ep-text);
    background:
        radial-gradient(48rem 30rem at 6% 8%, rgba(73, 187, 255, 0.18), transparent 62%),
        radial-gradient(42rem 28rem at 94% 16%, rgba(53, 109, 255, 0.16), transparent 64%),
        radial-gradient(30rem 20rem at 85% 86%, rgba(110, 240, 255, 0.10), transparent 66%),
        linear-gradient(180deg, var(--ep-bg) 0%, var(--ep-bg-2) 100%);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.entry-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(125, 158, 223, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 158, 223, .22) 1px, transparent 1px);
    background-size: 42px 42px;
}

.entry-shell {
    width: min(1240px, calc(100% - 28px));
    margin-inline: auto;
    padding: 16px 0 28px;
    position: relative;
    z-index: 1;
}

.entry-page-content {
  flex: 1 0 auto;
}

.entry-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--ep-radius-lg);
    border: 1px solid var(--ep-line);
    background: rgba(4, 12, 24, 0.66);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 34px rgba(0,0,0,.24);
}

.entry-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.entry-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.entry-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: rgba(255,255,255,.96);
}

.entry-brand-logo span {
    font-weight: 800;
    letter-spacing: .04em;
    color: #e4edff;
}

.entry-brand-text {
    min-width: 0;
}

.entry-brand-text h1 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-brand-text p {
    margin: 2px 0 0;
    color: var(--ep-muted);
    font-size: .84rem;
}

.entry-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ep-btn,
.ep-btn-ghost,
.ep-btn-primary {
    appearance: none;
    border: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    border-radius: 12px;
    transition: .18s ease;
    cursor: pointer;
}

.ep-btn-ghost {
    color: #d9e7ff;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    padding: 10px 13px;
}

.ep-btn-ghost:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
}

.ep-btn-primary {
    color: #fff;
    border: 1px solid rgba(98, 179, 255, .28);
    background: linear-gradient(135deg, var(--ep-blue), var(--ep-blue-2));
    padding: 11px 15px;
    box-shadow: 0 14px 26px rgba(53, 109, 255, .24);
}

.ep-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.ep-hero {
    margin-top: 16px;
    border-radius: var(--ep-radius-xl);
    border: 1px solid var(--ep-line);
    background:
        radial-gradient(28rem 16rem at 84% 22%, rgba(73, 187, 255, .18), transparent 70%),
        linear-gradient(180deg, rgba(8, 23, 47, .93), rgba(6, 16, 31, .95));
    box-shadow: var(--ep-shadow);
    position: relative;
    overflow: hidden;
}

.ep-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(125deg, rgba(255,255,255,.03), transparent 36%),
        linear-gradient(-125deg, rgba(255,255,255,.02), transparent 45%);
}

.ep-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    padding: 24px;
}

.ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    color: #d3def6;
    font-size: .82rem;
    font-weight: 700;
}

.ep-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5bd9ff, #4da5ff);
    box-shadow: 0 0 0 6px rgba(91, 217, 255, .12);
}

.ep-hero-copy h2 {
    margin: 12px 0 10px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.ep-hero-copy p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.66;
    max-width: 58ch;
}

.ep-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.ep-feature-card {
    border-radius: 15px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    padding: 13px;
}

.ep-feature-card small {
    display: block;
    color: #9db1d8;
    font-size: .77rem;
    margin-bottom: 5px;
}

.ep-feature-card strong {
    font-size: .92rem;
    letter-spacing: -.01em;
}

.ep-choice-stack {
    display: grid;
    gap: 12px;
    align-content: start;
}

.ep-choice-card {
    border-radius: 18px;
    border: 1px solid var(--ep-line);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    padding: 14px;
    display: grid;
    gap: 10px;
}

.ep-choice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ep-choice-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    color: #dbe7ff;
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .02em;
}

.ep-choice-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #d7e6ff;
}

.ep-choice-card h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.ep-choice-card p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.55;
    font-size: .88rem;
}

.ep-choice-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.ep-choice-actions .ep-btn-primary,
.ep-choice-actions .ep-btn-ghost {
    width: 100%;
}

.ep-info-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 14px;
}

.ep-info-card {
    border-radius: 18px;
    border: 1px solid var(--ep-line);
    background: linear-gradient(180deg, rgba(8, 22, 45, .82), rgba(6, 15, 29, .88));
    padding: 15px;
}

.ep-info-card h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    letter-spacing: -.02em;
}

.ep-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.ep-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #cfddf8;
    line-height: 1.45;
    font-size: .9rem;
}

.ep-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: .38rem;
    flex: 0 0 auto;
    background: linear-gradient(180deg, #6ef0ff, #49bbff);
    box-shadow: 0 0 0 6px rgba(110, 240, 255, .08);
}

.ep-stat-pills {
    display: grid;
    gap: 10px;
}

.ep-stat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    color: #dbe7ff;
    font-size: .88rem;
}

.ep-stat-pill span:last-child {
    color: #bfd1f0;
}

.ep-stat-pill .ok {
    color: #9af2c5;
    font-weight: 800;
}

.ep-footer {
    margin-top: 14px;
    text-align: center;
    font-size: .84rem;
    color: #94a8cc;
}

/* Admin login page */
.entry-login-wrap {
    min-height: calc(100vh - 86px);
    display: grid;
    place-items: center;
    padding: 18px;
    position: relative;
    z-index: 1;
}

.entry-login-grid {
    width: min(1120px, 100%);
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--ep-line);
    background: rgba(4, 12, 24, 0.68);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 16px;
    box-shadow: 0 26px 70px rgba(0,0,0,.38);
}

.entry-login-panel {
    border-radius: 18px;
    border: 1px solid var(--ep-line);
    background: linear-gradient(180deg, rgba(8, 22, 45, .94), rgba(6, 15, 29, .95));
}

.entry-login-panel--hero {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

.entry-login-panel--hero::before {
    content: "";
    position: absolute;
    inset: auto -14% -22% auto;
    width: 68%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 187, 255, .30), rgba(73, 187, 255, 0) 70%);
    filter: blur(8px);
}

.entry-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.entry-login-copy {
    position: relative;
    z-index: 1;
}

.entry-login-copy h2 {
    margin: 14px 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -.03em;
}

.entry-login-copy p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.65;
}

.entry-login-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.entry-login-stat {
    padding: 13px;
    border-radius: 14px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
}

.entry-login-stat small {
    display: block;
    color: #9fb1d2;
    font-size: .77rem;
    margin-bottom: 5px;
}

.entry-login-stat strong {
    font-size: .96rem;
    letter-spacing: -.01em;
}

.entry-login-actions {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-login-panel--form {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.entry-login-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.entry-login-chip {
    border-radius: 999px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    color: #d8e5ff;
    padding: 7px 11px;
    font-size: .8rem;
    font-weight: 800;
}

.entry-login-card {
    border-radius: 16px;
    border: 1px solid var(--ep-line);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    padding: 18px;
}

.entry-login-card h3 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -.02em;
}

.entry-login-card p {
    margin: 7px 0 0;
    color: var(--ep-muted);
    font-size: .92rem;
    line-height: 1.56;
}

.entry-form-grid {
    margin-top: 16px;
    display: grid;
    gap: 13px;
}

.entry-field label {
    display: block;
    margin-bottom: 7px;
    font-size: .83rem;
    font-weight: 700;
    color: #d0ddf7;
}

.entry-field input[type="email"],
.entry-field input[type="password"],
.entry-field input[type="text"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ep-line);
    background: rgba(4, 13, 28, .74);
    color: var(--ep-text);
    padding: 12px 13px;
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.entry-field input::placeholder {
    color: #7f93bc;
}

.entry-field input:focus {
    border-color: rgba(73, 187, 255, .52);
    box-shadow: 0 0 0 4px rgba(73, 187, 255, .12);
}

.entry-field input.is-invalid {
    border-color: rgba(255, 115, 143, .5);
    box-shadow: 0 0 0 4px rgba(255, 115, 143, .08);
}

.entry-invalid {
    display: block;
    margin-top: 6px;
    font-size: .82rem;
    color: #ff9bb0;
}

.entry-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c6d5f2;
    font-size: .88rem;
}

.entry-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--ep-blue);
}

.entry-link {
    color: #8fd4ff;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
}

.entry-link:hover {
    color: #cceeff;
}

.entry-submit {
    width: 100%;
    margin-top: 4px;
    padding: 12px 15px;
    border-radius: 13px;
}

.entry-switch-card {
    margin-top: 14px;
    border-radius: 14px;
    border: 1px solid var(--ep-line);
    background: rgba(255,255,255,.02);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.entry-switch-card small {
    display: block;
    color: #95a9cd;
    font-size: .75rem;
    margin-bottom: 2px;
}

.entry-switch-card strong {
    font-size: .9rem;
    color: #e7f0ff;
}

.entry-switch-card .ep-btn-ghost {
    white-space: nowrap;
    padding: 9px 12px;
}

.kt-brand-footer {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 12px;
  border-radius: 16px;
  border: 1px solid var(--ep-line);
  background: linear-gradient(180deg, rgba(8, 21, 43, .86), rgba(6, 16, 31, .92));
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
}

.kt-brand-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.kt-brand-footer__left {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #9eb0cf;
  font-size: .87rem;
}

.kt-brand-footer__left strong {
  color: #d9e6ff;
  font-weight: 700;
}

.kt-brand-footer__dot {
  opacity: .65;
  line-height: 1;
}

.kt-brand-footer__right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dfeaff;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.kt-brand-footer__right svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
    .ep-hero-grid,
    .ep-info-grid {
        grid-template-columns: 1fr;
    }

    .entry-login-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .entry-login-panel--hero {
        min-height: unset;
    }
}

@media (max-width: 720px) {
    .entry-shell {
        width: min(1240px, calc(100% - 14px));
        padding-top: 10px;
    }

    .entry-topbar {
        padding: 10px;
        border-radius: 14px;
        align-items: flex-start;
        flex-direction: column;
    }

    .entry-actions {
        width: 100%;
        justify-content: stretch;
    }

    .entry-actions .ep-btn-ghost {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }

    .ep-hero {
        border-radius: 18px;
    }

    .ep-hero-grid {
        padding: 14px;
        gap: 12px;
    }

    .ep-feature-grid {
        grid-template-columns: 1fr;
    }

    .ep-choice-actions {
        grid-template-columns: 1fr;
    }

    .entry-login-wrap {
        padding: 10px;
        min-height: calc(100vh - 98px);
    }

    .entry-login-grid {
        padding: 10px;
        border-radius: 16px;
        gap: 10px;
    }

    .entry-login-panel {
        border-radius: 14px;
    }

    .entry-login-panel--hero,
    .entry-login-panel--form {
        padding: 14px;
    }

    .entry-login-stats {
        grid-template-columns: 1fr;
    }

    .entry-switch-card {
        flex-direction: column;
        align-items: stretch;
    }

    .entry-switch-card .ep-btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .kt-brand-footer {
      width: calc(100% - 14px);
      margin-bottom: 8px;
      border-radius: 12px;
    }

    .kt-brand-footer__inner {
      padding: 10px 12px;
      flex-direction: column;
      align-items: flex-start;
    }

    .kt-brand-footer__right {
      align-self: flex-end;
    }
}
