.login-page {
    position: relative;
    overflow-x: hidden;
    background: var(--color-bg);
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    display: none;
}

.login-page .page-shell {
    --container: 1540px;
    grid-template-rows: 84px 1fr 58px;
}

.login-page .site-header { position: relative; z-index: 10; }
.login-page .brand { gap: 11px; }
.login-page .brand__mark { width: 38px; height: 38px; }
.login-page .brand__name { font-size: 18px; letter-spacing: -.045em; }
.login-page .environment-badge { box-shadow: none; }

.login-layout {
    position: relative;
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(420px, .84fr);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.login-hero {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    padding: clamp(44px, 4.2vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f8fafc;
    background: #101522;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    display: none;
}

.login-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 1px;
    top: 68px;
    right: -38px;
    display: none;
}

.login-hero__glow { display: none; }
.login-hero__glow--one { width: 540px; height: 540px; top: -330px; right: -180px; background: radial-gradient(circle, rgba(107, 92, 255, .43), transparent 67%); }
.login-hero__glow--two { width: 520px; height: 520px; bottom: -350px; left: -210px; background: radial-gradient(circle, rgba(0, 194, 148, .3), transparent 68%); }
.login-hero__content { width: 100%; max-width: 790px; }

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    color: #b7b8ff;
    background: rgba(116,117,255,.09);
    border: 1px solid rgba(156,157,255,.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.eyebrow__pulse { position: relative; width: 7px; height: 7px; flex: 0 0 auto; background: #9293ff; border-radius: 50%; }
.eyebrow__pulse::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(70, 230, 183, .45); border-radius: inherit; animation: login-live-pulse 2.2s ease-out infinite; }

.login-hero h1 { max-width: 720px; margin-top: 24px; color: #f8fafc; font-family: var(--font-display); font-size: clamp(42px, 4.3vw, 66px); line-height: 1.01; letter-spacing: -.06em; }
.login-hero h1 span { color: #aaaaff; background: none; }
.login-hero__content > p { max-width: 640px; margin-top: 20px; color: #9cabc0; font-size: 15px; line-height: 1.72; }

.product-preview { width: min(100%, 730px); margin-top: 34px; overflow: hidden; background: #151b29; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg); box-shadow: none; }
.product-preview__topbar { min-height: 43px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.product-preview__dots { display: flex; gap: 5px; }
.product-preview__dots span { width: 6px; height: 6px; background: rgba(148, 163, 184, .45); border-radius: 50%; }
.product-preview__dots span:first-child { background: rgba(255, 112, 112, .75); }
.product-preview__dots span:nth-child(2) { background: rgba(250, 204, 21, .72); }
.product-preview__dots span:last-child { background: rgba(52, 211, 153, .75); }
.product-preview__title { color: #8e9bb0; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.product-preview__live { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: #7ce4c4; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.product-preview__live i { width: 5px; height: 5px; background: #45dda9; border-radius: 50%; box-shadow: 0 0 10px #45dda9; }
.product-preview__body { padding: 15px; }
.product-preview__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.preview-metric { min-width: 0; padding: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(148, 163, 184, .12); border-radius: 13px; }
.preview-metric--primary { background: rgba(116,117,255,.1); border-color: rgba(139,140,255,.18); }
.preview-metric span, .preview-metric strong, .preview-metric small { display: block; }
.preview-metric span { overflow: hidden; color: #8090a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.preview-metric strong { margin-top: 7px; color: #f8fafc; font-family: var(--font-display); font-size: 20px; letter-spacing: -.035em; }
.preview-metric small { margin-top: 4px; color: #6f7f96; font-size: 8px; }
.preview-metric--primary small { color: #66e2bd; }

.preview-flow { margin-top: 10px; padding: 14px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(148, 163, 184, .1); border-radius: 13px; }
.preview-flow__heading { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.preview-flow__heading strong { color: #dce4ef; font-size: 9px; }
.preview-flow__heading span { color: #65758d; font-size: 8px; }
.preview-flow__item { min-height: 40px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid rgba(148, 163, 184, .08); }
.preview-flow__icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; }
.preview-flow__icon--green { color: #70e9c1; background: rgba(16, 185, 129, .11); }
.preview-flow__icon--violet { color: #aaa3ff; background: rgba(99, 91, 255, .13); }
.preview-flow__icon--cyan { color: #70dff2; background: rgba(34, 211, 238, .1); }
.preview-flow__item div { min-width: 0; }
.preview-flow__item strong, .preview-flow__item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-flow__item strong { color: #ccd6e4; font-size: 8.5px; }
.preview-flow__item small, .preview-flow__item time { margin-top: 2px; color: #65758d; font-size: 7.5px; }

.feature-list { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.feature-item { min-width: 0; padding: 11px 12px; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(148, 163, 184, .1); border-radius: 12px; }
.feature-item__icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; margin: 0; color: #9f98ff; background: rgba(99, 91, 255, .11); border: 1px solid rgba(139, 131, 255, .13); border-radius: 9px; font-size: 15px; }
.feature-item strong, .feature-item span { display: block; }
.feature-item strong { overflow: hidden; color: #dce5f1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.feature-item div > span { margin-top: 3px; overflow: hidden; color: #718198; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }

.trust-panel { width: 100%; max-width: 730px; margin-top: 24px; display: flex; align-items: center; gap: 13px; }
.trust-panel__avatars { display: flex; align-items: center; padding-left: 8px; }
.trust-panel__avatars span { width: 28px; height: 28px; margin-left: -8px; display: grid; place-items: center; color: #e8edff; background: linear-gradient(135deg, #655cf0, #39386d); border: 2px solid #0b1729; border-radius: 50%; font-size: 7px; font-weight: 800; }
.trust-panel__avatars span:nth-child(2) { background: linear-gradient(135deg, #068d79, #174d50); }
.trust-panel__avatars span:last-child { color: #071912; background: #5ee6b6; font-size: 10px; }
.trust-panel strong, .trust-panel span { display: block; }
.trust-panel strong { color: #cbd5e1; font-size: 10px; }
.trust-panel div > span { margin-top: 3px; color: #6f8098; font-size: 8.5px; }

.login-panel { position: relative; min-width: 0; padding: clamp(44px, 5vw, 80px); display: grid; place-items: center; background: var(--color-surface); }
.login-panel::before { display: none; }
.login-card { position: relative; z-index: 1; width: min(100%, 430px); }
.login-card__header { margin-bottom: 28px; }
.login-card__badge { width: fit-content; margin-bottom: 19px; display: inline-flex; align-items: center; gap: 7px; color: var(--color-primary); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.login-card__badge i { font-size: 14px; }
.login-card__header h2 { max-width: 390px; font-family: var(--font-display); font-size: clamp(32px, 3vw, 43px); line-height: 1.08; letter-spacing: -.05em; }
.login-card__header p { max-width: 370px; margin-top: 12px; color: var(--color-text-soft); font-size: 13px; line-height: 1.65; }
.login-card .form-field { margin-bottom: 18px; }
.login-card .form-field label { margin-bottom: 8px; color: var(--color-text); font-size: 11px; font-weight: 750; }
.login-card .input-shell input { height: 56px; padding-inline: 48px; background: color-mix(in srgb, var(--color-surface-muted) 78%, transparent); border-color: var(--color-border); border-radius: 14px; font-size: 14px; }
.login-card .input-shell input:hover { background: var(--color-surface); }
.login-card .input-shell input:focus { background: var(--color-surface); border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-soft), 0 10px 28px rgba(99, 91, 255, .08); }
.login-card .input-shell__icon { color: var(--color-text-faint); font-size: 17px; }
.login-card .submit-button { min-height: 54px; margin-top: 8px; padding: 0 20px; background: var(--color-primary); border-radius: var(--radius-md); box-shadow: none; font-size: 13px; }
.login-card .submit-button:hover { transform: none; background: var(--color-primary-hover); box-shadow: none; }
.login-card .submit-button > i { transition: transform var(--transition); }
.login-card .submit-button:hover > i { transform: translateX(3px); }
.login-help { margin-top: 19px; color: var(--color-text-faint); font-size: 10.5px; text-align: center; }
.login-help a { font-size: inherit; }
.login-card__security { margin-top: 25px; padding-top: 19px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--color-text-faint); border-top: 1px solid var(--color-border); font-size: 9.5px; text-align: center; }
.login-card__security i { color: var(--color-success); font-size: 14px; }
.form-alert[hidden], .capslock-warning[hidden] { display: none; }
.form-alert { margin-bottom: 20px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; color: var(--color-danger); background: var(--color-danger-soft); border: 1px solid rgba(217, 45, 32, .18); border-radius: 12px; font-size: 12px; line-height: 1.5; }
.capslock-warning { margin-top: 7px; display: flex; align-items: center; gap: 6px; color: #b45309; font-size: 10.5px; font-weight: 600; }
.login-page .site-footer { color: var(--color-text-faint); font-size: 10px; }

@keyframes login-live-pulse { 0% { transform: scale(.75); opacity: .8; } 75%, 100% { transform: scale(2.1); opacity: 0; } }

@media (max-width: 1180px) {
    .login-layout { grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); }
    .login-hero { padding: 48px; }
    .login-hero h1 { font-size: clamp(40px, 4.8vw, 58px); }
    .feature-item div > span { display: none; }
}

@media (max-width: 900px) {
    .login-page .page-shell { grid-template-rows: 72px auto auto; }
    .login-layout { grid-template-columns: 1fr; }
    .login-panel { order: -1; min-height: 640px; }
    .login-hero { min-height: auto; padding: 52px; }
    .login-hero__content, .product-preview, .trust-panel { max-width: 100%; }
}

@media (max-width: 620px) {
    .login-page { background: var(--color-surface); }
    .login-page .page-shell { width: 100%; min-height: 100svh; padding: 0; grid-template-rows: 66px 1fr auto; }
    .login-page .site-header { padding: 0 18px; border-bottom: 1px solid var(--color-border); }
    .environment-badge, .login-hero { display: none; }
    .login-layout { min-height: 0; display: block; border: 0; border-radius: 0; box-shadow: none; }
    .login-panel { min-height: calc(100svh - 66px); padding: 42px 22px 34px; display: flex; align-items: flex-start; }
    .login-panel::before { width: 120px; height: 120px; }
    .login-card { max-width: 460px; margin: 0 auto; }
    .login-card__header { margin-bottom: 28px; }
    .login-card__header h2 { font-size: 34px; }
    .login-card__header p { font-size: 12.5px; }
    .login-card .input-shell input, .login-card .submit-button { min-height: 58px; font-size: 15px; border-radius: 15px; }
    .login-card__security { margin-top: 27px; }
    .login-page .site-footer { padding: 16px 20px 22px; flex-direction: column; justify-content: center; gap: 8px; background: var(--color-surface); }
}

@media (max-width: 390px) {
    .login-panel { padding-inline: 17px; }
    .login-card__header h2 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
    .eyebrow__pulse::after { animation: none; }
}
