:root {
    --portal-primary: #654bee;
    --portal-primary-dark: #523bcf;
    --portal-text: #111c36;
    --portal-muted: #657086;
    --portal-border: #e5e8ef;
    --portal-bg: #f8f9fd;
    --portal-success: #1f9d68;
    --portal-radius: 12px;
    --portal-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--portal-font);
    color: var(--portal-text);
    background: var(--portal-bg);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.portal-login-page {
    overflow-x: hidden;
}

.portal-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 33vw);
    min-height: 100vh;
}

.portal-product {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 38px clamp(42px, 5.2vw, 96px) 32px;
    background:
        radial-gradient(circle at 18% 14%, rgba(101, 75, 238, 0.08), transparent 31%),
        radial-gradient(circle at 84% 82%, rgba(49, 186, 143, 0.055), transparent 27%),
        #f8f9fd;
}

.portal-product-inner {
    width: min(100%, 980px);
    margin: 0 auto;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    color: inherit;
    text-decoration: none;
}

.portal-brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.portal-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.portal-brand-copy strong {
    color: #11182b;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.portal-brand-copy small {
    color: var(--portal-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.portal-product-copy {
    max-width: 980px;
}

.portal-product-kicker {
    margin: 0 0 12px;
    color: #6a58dc;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
}

.portal-product-copy h1 {
    margin: 0;
    color: #111c36;
    font-size: clamp(30px, 2.15vw, 42px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.portal-product-copy h1 span {
    color: var(--portal-primary);
}

.portal-product-lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: #303a52;
    font-size: 15px;
    line-height: 1.55;
}

.portal-product-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.portal-point {
    min-width: 0;
}

.portal-point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f0edff, #e8e5ff);
    box-shadow: inset 0 0 0 1px rgba(101, 75, 238, 0.07);
    color: var(--portal-primary);
}

.portal-point-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-point strong,
.portal-point div > span {
    display: block;
    font-size: 15px;
}

.portal-point strong {
    margin-bottom: 5px;
    color: #15203a;
    font-weight: 700;
    line-height: 1.35;
}

.portal-point div > span {
    color: #59647b;
    line-height: 1.45;
}

.portal-demo {
    position: relative;
    width: min(100%, 790px);
    margin: 28px auto 0;
}

.portal-demo-window {
    position: relative;
    z-index: 2;
    padding: 10px 10px 12px;
    border: 1px solid #242a38;
    border-radius: 18px 18px 10px 10px;
    background: #181d28;
    box-shadow: 0 22px 44px rgba(32, 38, 56, 0.18);
}

.portal-demo-window::before {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 38px;
    height: 3px;
    border-radius: 99px;
    background: #384052;
    content: "";
    transform: translateX(-50%);
}

.portal-demo-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 12px;
    border-radius: 9px 9px 0 0;
    background: #111a32;
    color: #ffffff;
}

.portal-demo-brandmark {
    display: flex;
    align-items: center;
    gap: 7px;
}

.portal-demo-brandmark span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 5px;
    background: #654bee;
    font-size: 10px;
    font-weight: 700;
}

.portal-demo-brandmark b {
    font-size: 9px;
    letter-spacing: 0.03em;
}

.portal-demo-user {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9e6ff;
    color: #6049db;
    font-size: 8px;
    font-weight: 700;
}

.portal-demo-body {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    height: 236px;
    overflow: hidden;
    border-radius: 0 0 6px 6px;
    background: #f4f6fb;
}

.portal-demo-sidebar {
    padding: 14px 10px;
    background: #111a32;
    color: #d9deeb;
}

.portal-demo-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    margin: 2px 0;
    padding: 0 8px;
    border-radius: 6px;
    color: #b8c0d2;
    font-size: 8px;
}

.portal-demo-nav i {
    width: 7px;
    height: 7px;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: 0.75;
}

.portal-demo-nav.is-active {
    background: #5140b9;
    color: #ffffff;
}

.portal-demo-main {
    min-width: 0;
    padding: 14px 16px;
}

.portal-demo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-demo-heading small {
    display: block;
    margin-bottom: 3px;
    color: #8d95a8;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.portal-demo-heading strong {
    color: #1b2439;
    font-size: 14px;
}

.portal-status {
    padding: 4px 7px;
    border-radius: 99px;
    background: #fff1d8;
    color: #9b6814;
    font-size: 7px;
    font-weight: 700;
}

.portal-demo-meta {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.9fr;
    gap: 7px;
    margin-top: 11px;
}

.portal-demo-meta > div {
    padding: 8px;
    border: 1px solid #e8eaf1;
    border-radius: 7px;
    background: #ffffff;
}

.portal-demo-meta span,
.portal-demo-meta b {
    display: block;
}

.portal-demo-meta span {
    margin-bottom: 3px;
    color: #8d95a8;
    font-size: 6px;
}

.portal-demo-meta b {
    color: #283248;
    font-size: 8px;
}

.portal-demo-table {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #e6e9f0;
    border-radius: 7px;
    background: #ffffff;
}

.portal-demo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px 62px;
    min-height: 23px;
    border-top: 1px solid #eef0f5;
}

.portal-demo-row:first-child {
    border-top: 0;
}

.portal-demo-row span {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #4f596d;
    font-size: 7px;
}

.portal-demo-row-head {
    background: #f8f9fc;
}

.portal-demo-row-head span {
    color: #8790a2;
    font-size: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.portal-demo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 6px;
    background: #654bee;
    color: #ffffff;
    font-size: 7px;
    font-weight: 700;
}

.portal-demo-base {
    position: relative;
    z-index: 1;
    width: 108%;
    height: 13px;
    margin: -2px 0 0 -4%;
    border-radius: 2px 2px 18px 18px;
    background: linear-gradient(180deg, #d8dbe3, #b8becb 55%, #eef0f4);
    box-shadow: 0 8px 15px rgba(42, 49, 67, 0.12);
}

.portal-demo-base::after {
    display: block;
    width: 80px;
    height: 4px;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    background: #a9aebb;
    content: "";
}

.portal-product-values {
    margin-top: 14px;
    color: #687388;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.portal-auth-panel {
    display: flex;
    align-items: center;
    min-width: 0;
    border-left: 1px solid #e7e9f1;
    background: #ffffff;
    box-shadow: -18px 0 42px rgba(28, 37, 57, 0.035);
}

.portal-auth-panel-inner {
    width: min(100% - 52px, 440px);
    margin: 0 auto;
    padding: 44px 0 34px;
}

.portal-auth-card {
    padding: 0;
}

.portal-auth-heading {
    margin-bottom: 24px;
}

.portal-auth-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 0 10px;
    border-radius: 99px;
    background: #f0edff;
    color: #5d48d5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.portal-auth-heading h2 {
    margin: 0;
    color: #111b33;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.portal-auth-heading p {
    margin: 8px 0 0;
    color: #687286;
    font-size: 15px;
    line-height: 1.45;
}

.portal-auth-form {
    display: grid;
    gap: 17px;
}

.portal-field label {
    display: block;
    margin: 0 0 7px;
    color: #283248;
    font-size: 15px;
    font-weight: 600;
}

.portal-field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #dce1e9;
    border-radius: 10px;
    outline: 0;
    background: #f9fafc;
    color: #7a8498;
    font-size: 15px;
}

.portal-field input::placeholder {
    color: #a5adbb;
}

.portal-field input:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.portal-password-control {
    position: relative;
}

.portal-password-input {
    padding-right: 48px !important;
}

.portal-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8b94a6;
    transform: translateY(-50%);
}

.portal-password-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-submit {
    min-height: 50px;
    margin-top: 3px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #7b65ee, #6750dd);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(101, 75, 238, 0.18);
}

.portal-submit:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.portal-launch-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 24px;
    padding: 14px 15px;
    border: 1px solid #e4e0ff;
    border-radius: 12px;
    background: #f7f5ff;
}

.portal-launch-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(101, 75, 238, 0.1);
}

.portal-launch-note strong {
    display: block;
    margin-bottom: 4px;
    color: #2a214f;
    font-size: 15px;
    font-weight: 700;
}

.portal-launch-note p {
    margin: 0;
    color: #665f78;
    font-size: 14px;
    line-height: 1.45;
}

.portal-access-note {
    margin-top: 16px;
    color: #747e91;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.portal-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
    color: #707b90;
    font-size: 14px;
    line-height: 1.25;
}

.portal-trust-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.portal-trust-row svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #68758e;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1280px) {
    .portal-login-layout {
        grid-template-columns: minmax(0, 1fr) 430px;
    }

    .portal-product {
        padding-inline: 42px;
    }

    .portal-product-copy h1 {
        font-size: 34px;
    }

    .portal-product-points {
        gap: 12px;
    }

    .portal-demo {
        max-width: 700px;
    }
}

@media (max-width: 1020px) {
    .portal-product-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .portal-login-layout {
        display: block;
        min-height: 100vh;
        background: #ffffff;
    }

    .portal-product {
        display: block;
        padding: 24px 22px 14px;
        background:
            radial-gradient(circle at 12% 8%, rgba(91, 67, 214, 0.08), transparent 34%),
            #f6f8fc;
    }

    .portal-product-inner {
        width: min(100%, 520px);
    }

    .portal-brand {
        margin: 0;
    }

    .portal-brand img {
        width: 42px;
        height: 42px;
    }

    .portal-brand-copy strong {
        font-size: 20px;
    }

    .portal-product-copy {
        display: none;
    }

    .portal-auth-panel {
        display: block;
        border-left: 0;
        box-shadow: none;
    }

    .portal-auth-panel-inner {
        width: min(100% - 44px, 480px);
        padding: 30px 0 38px;
    }
}

@media (max-width: 420px) {
    .portal-product {
        padding-inline: 18px;
    }

    .portal-auth-panel-inner {
        width: calc(100% - 36px);
    }

    .portal-auth-heading h2 {
        font-size: 28px;
    }

    .portal-trust-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
