.auth-shell {
    min-height: 100vh;
    padding: 18px 24px;
    display: block;
    background: #f2f2f4;
}

.portal-login {
    width: min(1320px, 100%);
    min-height: calc(100vh - 36px);
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
}

.portal-login__top {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 6px;
}

.portal-login__brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.portal-login__brand strong {
    color: #102f7a;
    font-size: 2rem;
    letter-spacing: -0.01em;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.portal-login__bars {
    display: inline-flex;
    gap: 6px;
}

.portal-login__bars i {
    width: 4px;
    height: 20px;
    border-radius: 999px;
    display: inline-block;
}

.portal-login__bars i:nth-child(1) {
    background: #f5433b;
}

.portal-login__bars i:nth-child(2) {
    background: #f4bd09;
}

.portal-login__bars i:nth-child(3) {
    background: #5bbf5f;
}

.portal-login__bars i:nth-child(4) {
    background: #2d92ff;
}

.portal-login__support {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #7b869d;
    background: #e7ebf4;
    font-size: 19px;
}

.portal-login__main {
    display: grid;
    grid-template-columns: minmax(400px, 1.25fr) minmax(330px, 0.85fr);
    align-items: stretch;
    gap: 28px;
}

.portal-login__showcase {
    position: relative;
    border: 1px solid #d7dce7;
    background:
        radial-gradient(circle at 45% 35%, rgb(25 69 125 / 0.62) 0, transparent 48%),
        linear-gradient(168deg, #02060d 0%, #04132a 45%, #030b17 100%);
    overflow: hidden;
}

.portal-login__showcase::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 24%;
    background: linear-gradient(180deg, rgb(6 16 33 / 0) 0, rgb(3 9 19 / 0.96) 100%);
}

.portal-login__showcase-content {
    position: absolute;
    left: clamp(28px, 3vw, 52px);
    bottom: clamp(128px, 18%, 168px);
    z-index: 2;
    display: grid;
    gap: 14px;
}

.portal-login__showcase-content--logo {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(22px, 4vw, 40px);
}

.portal-login__showcase-logo {
    width: min(220px, 62%);
    height: auto;
    object-fit: contain;
    object-position: center;
    transform: translateY(-36px);
}

.portal-login__showcase-content small {
    color: #f8aa67;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.portal-login__showcase-content h1 {
    margin: 0;
    max-width: 540px;
    color: #fff;
    font-size: clamp(2.9rem, 4.7vw, 6rem);
    letter-spacing: -0.045em;
    line-height: 0.93;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.portal-login__showcase-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.portal-login__showcase-indicator span {
    width: 20px;
    height: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.36);
    display: inline-block;
}

.portal-login__showcase-indicator span.is-active {
    width: 38px;
    background: #ef9955;
}

.portal-login__paint-row {
    position: absolute;
    left: clamp(26px, 3vw, 46px);
    right: clamp(26px, 3vw, 46px);
    bottom: clamp(74px, 12%, 112px);
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: clamp(14px, 2vw, 22px);
}

.paint-can {
    position: relative;
    width: clamp(76px, 11vw, 146px);
    height: clamp(90px, 14vw, 168px);
    border-radius: 14px 14px 22px 22px;
    display: inline-block;
    box-shadow: inset 0 -16px 24px rgb(0 0 0 / 0.42), 0 16px 28px -22px rgb(0 0 0 / 0.75);
}

.paint-can::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: -10px;
    height: 16px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.52);
}

.paint-can::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 18%;
    width: 16%;
    height: 34%;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.22);
    box-shadow: 26px 18px 0 rgb(0 0 0 / 0.2), 52px -4px 0 rgb(0 0 0 / 0.18);
}

.paint-can--blue {
    background: linear-gradient(180deg, #2a405f, #121f31);
}

.paint-can--yellow {
    margin-bottom: 16px;
    background: linear-gradient(180deg, #f1ca34, #bf9926);
}

.paint-can--orange {
    background: linear-gradient(180deg, #c85914, #88350a);
}

.paint-can--cyan {
    margin-bottom: 10px;
    background: linear-gradient(180deg, #2f95d1, #1d5f8f);
}

.portal-login__showcase-stripe {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 3;
}

.portal-login__showcase-stripe i:nth-child(1) {
    background: #ff5b3f;
}

.portal-login__showcase-stripe i:nth-child(2) {
    background: #f2c318;
}

.portal-login__showcase-stripe i:nth-child(3) {
    background: #9bc84f;
}

.portal-login__showcase-stripe i:nth-child(4) {
    background: #5e1d4f;
}

.portal-login__showcase-stripe i:nth-child(5) {
    background: #8f124f;
}

.portal-login__panel {
    padding: 26px clamp(16px, 2.7vw, 34px) 22px;
    display: grid;
    align-content: center;
    gap: 24px;
}

.portal-login__panel-header {
    display: grid;
    gap: 10px;
}

.portal-login__panel-logo {
    width: min(220px, 70%);
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.portal-login__panel-header small {
    color: #a65c2f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.portal-login__panel-header small::after {
    content: "";
    width: 34px;
    height: 1px;
    background: #c6cedf;
    display: inline-block;
}

.portal-login__panel-header h2 {
    margin: 0;
    color: #10235b;
    letter-spacing: -0.025em;
    font-size: clamp(2rem, 3.2vw, 4rem);
    line-height: 0.95;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.portal-login__entry-tag {
    margin: 2px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-login__entry-tag--admin {
    background: #e8efff;
    color: #183775;
    border: 1px solid #ccdbff;
}

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

.portal-login-form__field {
    display: grid;
    gap: 8px;
}

.portal-login-form__field label {
    color: #4f5a72;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.portal-login-form__field input {
    width: 100%;
    min-height: 52px;
    border-radius: 0;
    border: 1px solid #d8dde8;
    background: #e8ebf0;
    color: #33415f;
    font-size: 1rem;
    padding: 0 14px;
}

.portal-login-form__field input::placeholder {
    color: #8c95a9;
}

.portal-login-form__field input:focus {
    outline: none;
    border-color: #1f376f;
    box-shadow: 0 0 0 3px rgb(31 55 111 / 0.16);
}

.portal-login-form__options {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-login-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f5b72;
    font-size: 0.88rem;
}

.portal-login-form__remember input {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid #ccd3e0;
    accent-color: #122e72;
}

.portal-login-form__reset {
    color: #ab6032;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.portal-login-form__error {
    margin: 0;
    color: #b3364a;
    font-size: 0.86rem;
    font-weight: 600;
}

.portal-login-form__submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 6px;
    background: #071f64;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.03rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 24px -18px rgb(7 31 100 / 0.7);
}

.portal-login-form__submit .material-symbols-rounded {
    font-size: 18px;
}

.portal-login__notice {
    border-top: 1px solid #d8deea;
    padding-top: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    color: #5d677d;
}

.portal-login__notice .material-symbols-rounded {
    color: #a85f2e;
    font-size: 19px;
    transform: translateY(1px);
}

.portal-login__notice p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
}

.portal-login__notice a {
    color: #35426c;
    font-weight: 700;
    text-decoration: underline;
}

.portal-login__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 2px 6px;
}

.portal-login__footer small {
    color: #8a95aa;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
}

.portal-login__footer nav {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.portal-login__footer nav a {
    color: #7e8a9f;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .portal-login__main {
        grid-template-columns: 1fr;
    }

    .portal-login__showcase {
        min-height: 560px;
    }

    .portal-login__panel {
        padding: 6px 0 0;
    }
}

@media (max-width: 780px) {
    .auth-shell {
        padding: 10px;
    }

    .portal-login {
        min-height: calc(100vh - 20px);
        gap: 12px;
    }

    .portal-login__top {
        min-height: 50px;
    }

    .portal-login__brand strong {
        font-size: 1.54rem;
    }

    .portal-login__bars i {
        height: 14px;
    }

    .portal-login__showcase {
        min-height: 420px;
    }

    .portal-login__showcase-content {
        left: 18px;
        right: 18px;
        bottom: 110px;
    }

    .portal-login__showcase-content--logo {
        inset: 0;
        padding: 22px;
    }

    .portal-login__showcase-logo {
        width: min(220px, 72%);
        transform: translateY(-26px);
    }

    .portal-login__showcase-content h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .portal-login__paint-row {
        left: 18px;
        right: 18px;
        bottom: 76px;
        gap: 10px;
    }

    .portal-login__panel-header h2 {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }

    .portal-login-form__options {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-login__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .portal-login__footer nav {
        gap: 14px;
        flex-wrap: wrap;
    }
}
