:root {
    --sc-ink: #17242d;
    --sc-muted: #6c7b83;
    --sc-line: #dce5e8;
    --sc-surface: #ffffff;
    --sc-page: #f3f7f7;
    --sc-teal: #12383b;
    --sc-teal-2: #1b5053;
    --sc-accent: #dc1644;
    --sc-accent-dark: #bd1137;
    --sc-accent-soft: #fff0f4;
    --sc-success: #1b9b6c;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--sc-ink);
    background: var(--sc-page);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.portal-auth {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 8% 10%, rgba(18, 56, 59, .09), transparent 26%),
        radial-gradient(circle at 92% 88%, rgba(220, 22, 68, .08), transparent 25%),
        var(--sc-page);
}

.portal-auth__shell {
    width: 100%;
    max-width: 500px;
    min-height: 680px;
    /* display: grid; */
    grid-template-columns: 46% 54%;
    overflow: hidden;
    background: var(--sc-surface);
    border: 1px solid rgba(18, 56, 59, .08);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(22, 47, 52, .13);
}

.portal-auth__intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 42px 46px 34px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(145deg, #0d3033 0%, #16484b 58%, #1c5b5c 100%);
}

.portal-auth__intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    border: 70px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
}

.portal-auth__intro-orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(1px);
}

.portal-auth__intro-orb--one {
    width: 190px;
    height: 190px;
    top: 130px;
    right: -85px;
    background: rgba(220, 22, 68, .18);
}

.portal-auth__intro-orb--two {
    width: 110px;
    height: 110px;
    left: -35px;
    bottom: 95px;
    background: rgba(255, 255, 255, .05);
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.portal-brand__logo {
    width: 48px;
    height: 48px;
    padding: 7px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(220, 22, 68, .14);
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.portal-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-brand strong {
    display: block;
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -.2px;
}

.portal-brand small {
    display: block;
    margin-top: 3px;
    color: #718086;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.portal-brand--light small {
    color: rgba(255, 255, 255, .65);
}

.portal-auth__intro-content {
    margin: auto 0;
}

.portal-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    color: #d8eeee;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.portal-auth__eyebrow svg {
    width: 15px;
    fill: #62d1b0;
}

.portal-auth__intro h1 {
    max-width: 430px;
    margin: 22px 0 15px;
    font-size: clamp(32px, 3vw, 47px);
    line-height: 1.08;
    letter-spacing: -1.7px;
}

.portal-auth__intro-content>p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.75;
}

.portal-auth__features {
    margin-top: 36px;
    display: grid;
    gap: 16px;
}

.portal-feature {
    display: flex;
    align-items: center;
    gap: 13px;
}

.portal-feature__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
}

.portal-feature__icon svg {
    width: 20px;
    fill: #fff;
}

.portal-feature strong {
    display: block;
    font-size: 13px;
}

.portal-feature small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    line-height: 1.4;
}

.portal-auth__copyright {
    margin: 0;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
}

.portal-auth__form-side {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.portal-auth__mobile-brand {
    display: none;
}

.portal-login-card {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

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

.portal-login-card__portal-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    color: var(--sc-accent);
    background: var(--sc-accent-soft);
    border: 1px solid #ffd9e3;
    border-radius: 15px;
}

.portal-login-card__portal-icon svg {
    width: 24px;
    fill: currentColor;
}

.portal-login-card__secure {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #718087;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.portal-login-card__secure i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sc-success);
    box-shadow: 0 0 0 4px rgba(27, 155, 108, .1);
}

.portal-login-card__heading {
    margin: 22px 0 28px;
}

.portal-login-card__heading p {
    margin: 0 0 6px;
    color: var(--sc-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.portal-login-card__heading h2 {
    margin: 0;
    color: var(--sc-ink);
    font-size: clamp(25px, 2.4vw, 33px);
    line-height: 1.2;
    letter-spacing: -.8px;
}

.portal-login-card__heading span {
    display: block;
    margin-top: 9px;
    color: var(--sc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.portal-alert {
    margin-bottom: 20px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #9f1837;
    background: #fff3f6;
    border: 1px solid #ffd6df;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.45;
}

.portal-alert svg {
    width: 17px;
    flex: 0 0 17px;
    fill: currentColor;
}

.portal-login-form {
    display: grid;
    gap: 19px;
}

.portal-field label {
    color: #2d3c43;
    font-size: 12px;
    font-weight: 700;
}

.portal-field__label-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-field__label-row a {
    color: var(--sc-accent);
    font-size: 11px;
    font-weight: 700;
}

.portal-field>label {
    display: block;
    margin-bottom: 8px;
}

.portal-field__control {
    height: 51px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fbfcfc;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.portal-field__control:focus-within {
    background: #fff;
    border-color: #277a7c;
    box-shadow: 0 0 0 4px rgba(27, 80, 83, .09);
}

.portal-field__control.is-invalid {
    border-color: #e65373;
}

.portal-field__control>svg {
    width: 19px;
    flex: 0 0 19px;
    fill: #809096;
}

.portal-field__control input {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    color: var(--sc-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.portal-field__control input::placeholder {
    color: #a2adb1;
}

.portal-password-toggle {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #738187;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.portal-password-toggle:hover {
    color: var(--sc-teal);
    background: #edf4f4;
}

.portal-password-toggle svg {
    width: 19px;
    fill: currentColor;
}

.portal-password-toggle.is-visible {
    color: var(--sc-accent);
}

.portal-remember {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #5f6e74;
    font-size: 12px;
    cursor: pointer;
}

.portal-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.portal-remember>span {
    width: 18px;
    height: 18px;
    position: relative;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1.5px solid #bbc8cc;
    border-radius: 5px;
}

.portal-remember input:checked+span {
    background: var(--sc-teal-2);
    border-color: var(--sc-teal-2);
}

.portal-remember input:checked+span::after {
    content: "";
    width: 8px;
    height: 4px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.portal-submit {
    height: 52px;
    margin-top: 2px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #fff;
    background: linear-gradient(110deg, var(--sc-accent), var(--sc-accent-dark));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(220, 22, 68, .2);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.portal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 27px rgba(220, 22, 68, .25);
}

.portal-submit svg {
    width: 18px;
    fill: currentColor;
}

.portal-login-card__switch {
    margin-top: 25px;
    padding-top: 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid #edf1f2;
    font-size: 12px;
}

.portal-login-card__switch span {
    color: var(--sc-muted);
}

.portal-login-card__switch a {
    color: var(--sc-teal-2);
    font-weight: 800;
}

.portal-login-card__switch a:hover,
.portal-field__label-row a:hover {
    text-decoration: underline;
}

.portal-auth__help {
    margin: 26px auto 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    color: #859197;
    font-size: 11px;
}

.portal-auth__help a {
    color: var(--sc-teal-2);
    font-weight: 700;
}

@media (max-width: 860px) {
    .portal-auth {
        min-height: 100svh;
        padding: 20px;
        align-items: start;
    }

    .portal-auth__shell {
        width: min(520px, 100%);
        min-height: calc(100svh - 40px);
        display: block;
        border-radius: 23px;
    }

    .portal-auth__intro {
        display: none;
    }

    .portal-auth__form-side {
        min-height: calc(100svh - 42px);
        padding: 27px clamp(22px, 7vw, 44px) 24px;
        justify-content: flex-start;
    }

    .portal-auth__mobile-brand {
        display: block;
        margin-bottom: clamp(38px, 8vh, 70px);
    }

    .portal-brand__logo {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

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

    .portal-brand small {
        font-size: 9px;
    }

    .portal-login-card {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .portal-auth {
        padding: 0;
        background: #fff;
    }

    .portal-auth__shell {
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .portal-auth__form-side {
        min-height: 100svh;
        padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
    }

    .portal-auth__mobile-brand {
        margin-bottom: 42px;
    }

    .portal-login-card__portal-icon {
        width: 45px;
        height: 45px;
        border-radius: 13px;
    }

    .portal-login-card__heading {
        margin: 19px 0 25px;
    }

    .portal-login-card__heading h2 {
        font-size: 25px;
    }

    .portal-auth__help {
        margin-top: auto;
        padding-top: 28px;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}




aside.portal-auth__intro {
    display: none;
}
