.sm-page {
    --sm-bg: #02030a;
    --sm-panel: #070a12;
    --sm-line: rgba(255, 255, 255, 0.12);
    --sm-muted: #9699a5;
    --sm-accent: #d8f000;
    min-height: 100%;
    height: auto;
    background: var(--sm-bg);
    color: #f7f8fb;
    font-family: 'Inter', sans-serif;
}

.sm-page * {
    box-sizing: border-box;
}

.sm-shell {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 33% 46%, rgba(74, 14, 136, 0.1), transparent 29rem),
        var(--sm-bg);
}

.sm-header {
    height: 100px;
    padding: 0 clamp(30px, 4vw, 72px);
    display: grid;
    grid-template-columns: 230px 1fr 230px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-brand {
    display: inline-flex;
    width: fit-content;
}

.sm-brand img,
.sm-footer-brand img {
    display: block;
    width: 145px;
    height: auto;
}

.sm-nav {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 3vw, 48px);
    color: #b7b9c1;
    font-size: 15px;
}

.sm-nav a,
.sm-footer a {
    transition: color 160ms ease;
}

.sm-nav a:hover,
.sm-footer a:hover {
    color: var(--sm-accent);
}

.sm-header-signup {
    justify-self: end;
    min-width: 112px;
    padding: 12px 20px;
    border: 1px solid rgba(216, 240, 0, 0.75);
    border-radius: 7px;
    color: var(--sm-accent) !important;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.sm-main {
    width: min(1440px, calc(100% - 72px));
    min-height: 690px;
    margin: 0 auto;
    padding: 68px 0 58px;
    display: grid;
    grid-template-columns: minmax(380px, 1.1fr) minmax(320px, 0.78fr) minmax(420px, 0.95fr);
    grid-template-areas:
        "art welcome card"
        "art features card";
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: clamp(28px, 3vw, 58px);
}

.sm-reset-main {
    width: min(1040px, calc(100% - 72px));
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 0.9fr);
    grid-template-areas: "welcome card";
    align-items: center;
    column-gap: clamp(55px, 8vw, 120px);
}

.sm-reset-main .sm-welcome {
    padding-top: 0;
}

.sm-reset-main .sm-welcome p {
    max-width: 470px;
}

.sm-reset-main .sm-auth-card {
    max-width: 480px;
    justify-self: end;
}

.sm-reset-signin {
    margin-top: 24px;
}

.sm-welcome {
    grid-area: welcome;
    padding-top: 58px;
}

.sm-welcome h1 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(38px, 3vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.sm-welcome p {
    margin: 14px 0 0;
    color: var(--sm-muted);
    font-size: 18px;
    line-height: 1.5;
}

.sm-art {
    grid-area: art;
    align-self: stretch;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%);
}

.sm-art img {
    width: 112%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: 50% 53%;
    filter: saturate(1.08) contrast(1.03);
}

.sm-features {
    grid-area: features;
    padding-top: 34px;
}

.sm-features article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sm-features article:last-child {
    border-bottom: 0;
}

.sm-feature-icon {
    color: var(--sm-accent);
}

.sm-feature-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-features h2,
.sm-card-heading h2 {
    width: auto;
    margin: 0;
    padding: 0;
    color: #f8f8fa;
    font-size: 16px;
    font-weight: 500;
}

.sm-features p {
    margin: 8px 0 0;
    color: var(--sm-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sm-auth-card {
    grid-area: card;
    align-self: center;
    width: 100%;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(11, 14, 24, 0.97), rgba(4, 6, 13, 0.94));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.sm-card-heading {
    margin-bottom: 24px;
}

.sm-card-heading h2 {
    font-size: 21px;
}

.sm-card-heading p {
    margin: 8px 0 0;
    color: var(--sm-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sm-auth-card .forminfo,
.sm-auth-card .formwarn {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.45;
}

.sm-auth-card .forminfo {
    border: 1px solid rgba(159, 224, 116, 0.35);
    background: rgba(62, 109, 31, 0.22);
    color: #c6f5a8;
}

.sm-auth-card .formwarn {
    border: 1px solid rgba(216, 240, 0, 0.3);
    background: rgba(216, 240, 0, 0.08);
    color: #edf58c;
}

.sm-input-wrap {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 18px;
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    background: rgba(5, 8, 15, 0.8);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sm-input-wrap:focus-within {
    border-color: rgba(216, 240, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(216, 240, 0, 0.08);
}

.sm-input-wrap svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: var(--sm-accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-page .sm-input-wrap input {
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #f5f5f7;
    font: inherit;
    font-size: 15px;
}

.sm-page .sm-input-wrap input::placeholder {
    color: #858894;
    font-size: 15px;
}

.sm-page .sm-input-wrap input:-webkit-autofill,
.sm-page .sm-input-wrap input:-webkit-autofill:hover,
.sm-page .sm-input-wrap input:-webkit-autofill:focus,
.sm-page .sm-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #f5f5f7;
    caret-color: #f5f5f7;
    -webkit-box-shadow: 0 0 0 1000px #05080f inset;
    box-shadow: 0 0 0 1000px #05080f inset;
    transition: background-color 9999s ease-out 0s;
}

.sm-page .sm-input-wrap input:autofill {
    color: #f5f5f7;
    caret-color: #f5f5f7;
    box-shadow: 0 0 0 1000px #05080f inset;
}

.sm-password-wrap {
    margin-top: 16px;
}

.sm-password-toggle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 6px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #9295a0;
    cursor: pointer;
}

.sm-password-toggle:hover {
    color: #fff;
}

.sm-password-toggle svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

.sm-forgot {
    margin-top: 12px;
    text-align: right;
    font-size: 13px;
}

.sm-forgot a {
    color: var(--sm-accent) !important;
}

.sm-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 22px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(100deg, #e5f400, #b9e600);
    color: #080a08;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}

.sm-submit span {
    grid-column: 2;
}

.sm-submit svg {
    grid-column: 3;
    justify-self: end;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.sm-submit:disabled {
    cursor: wait;
    filter: saturate(0.55);
    transform: none;
}

.sm-divider {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #888b96;
    font-size: 13px;
}

.sm-divider::before,
.sm-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--sm-line);
}

.sm-alternate {
    min-height: 54px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    border: 1px solid var(--sm-line);
    border-radius: 7px;
    color: #f0f1f4 !important;
    text-align: center;
    font-size: 14px;
    transition: border-color 160ms ease, background 160ms ease;
}

.sm-alternate:hover {
    border-color: rgba(216, 240, 0, 0.48);
    background: rgba(216, 240, 0, 0.04);
}

.sm-alternate svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-signup {
    margin: 24px 0 0;
    color: #a5a7af;
    text-align: center;
    font-size: 13px;
}

.sm-signup a {
    color: var(--sm-accent) !important;
}

.sm-home {
    width: fit-content;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777b86 !important;
    font-size: 12px;
}

.sm-home:hover {
    color: #fff !important;
}

.sm-home svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sm-footer {
    min-height: 260px;
    padding: 46px max(72px, calc((100vw - 1440px) / 2));
    display: grid;
    grid-template-columns: minmax(300px, 2fr) repeat(3, minmax(140px, 0.75fr));
    gap: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #858894;
    font-size: 13px;
}

.sm-footer-brand p {
    max-width: 330px;
    margin: 18px 0 0;
    line-height: 1.7;
}

.sm-footer h2 {
    width: auto;
    margin: 0 0 13px;
    padding: 0;
    color: #b8bac2;
    font-size: 13px;
    font-weight: 500;
}

.sm-footer > div:not(.sm-footer-brand) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.sm-copyright {
    grid-column: 1 / -1;
    margin: 5px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
    .sm-header {
        grid-template-columns: 180px 1fr 120px;
    }

    .sm-nav {
        gap: 22px;
        font-size: 13px;
    }

    .sm-main {
        width: min(1040px, calc(100% - 48px));
        grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 0.75fr) minmax(370px, 0.9fr);
        column-gap: 24px;
    }

    .sm-welcome h1 {
        font-size: 38px;
    }
}

@media (max-width: 960px) {
    .sm-header {
        height: 86px;
        grid-template-columns: 1fr auto;
    }

    .sm-nav {
        display: none;
    }

    .sm-main {
        width: min(720px, calc(100% - 40px));
        padding-top: 52px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "welcome welcome"
            "card art";
        gap: 36px 24px;
    }

    .sm-reset-main {
        width: min(760px, calc(100% - 48px));
        grid-template-columns: minmax(270px, 0.8fr) minmax(380px, 1fr);
        grid-template-areas: "welcome card";
        gap: 42px;
    }

    .sm-reset-main .sm-welcome {
        text-align: left;
    }

    .sm-welcome {
        padding-top: 0;
        text-align: center;
    }

    .sm-features {
        display: none;
    }

    .sm-art {
        min-height: 560px;
    }

    .sm-art img {
        width: 185%;
        height: auto;
        min-height: 0;
    }

    .sm-footer {
        padding-inline: 40px;
    }
}

@media (max-width: 669px) {
    .sm-shell {
        background:
            radial-gradient(circle at 50% 83%, rgba(91, 14, 151, 0.16), transparent 22rem),
            var(--sm-bg);
    }

    .sm-header {
        display: none;
    }

    .sm-main {
        width: 100%;
        min-height: 0;
        padding: clamp(100px, 15vh, 128px) 0 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "welcome"
            "card"
            "art";
        gap: 0;
    }

    .sm-reset-main {
        padding-bottom: 80px;
        grid-template-areas:
            "welcome"
            "card";
    }

    .sm-reset-main .sm-welcome {
        text-align: center;
    }

    .sm-welcome {
        padding: 0 22px;
        text-align: center;
    }

    .sm-welcome h1 {
        font-size: clamp(34px, 9.5vw, 40px);
        line-height: 1.05;
    }

    .sm-welcome p {
        margin-top: 9px;
        font-size: 15px;
    }

    .sm-auth-card {
        width: calc(100% - 36px);
        margin: 30px 18px 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .sm-card-heading {
        display: none;
    }

    .sm-input-wrap {
        height: 56px;
        gap: 12px;
        padding-inline: 17px;
        border-radius: 8px;
    }

    .sm-input-wrap svg {
        width: 20px;
        height: 20px;
    }

    .sm-page .sm-input-wrap input,
    .sm-page .sm-input-wrap input::placeholder {
        font-size: 15px;
    }

    .sm-password-wrap {
        margin-top: 12px;
    }

    .sm-password-toggle {
        width: 32px;
        height: 32px;
    }

    .sm-password-toggle svg {
        width: 20px;
        height: 20px;
    }

    .sm-forgot {
        margin-top: 10px;
        font-size: 13px;
    }

    .sm-submit {
        min-height: 55px;
        margin-top: 19px;
        padding: 12px 16px;
        font-size: 15px;
    }

    .sm-submit svg {
        width: 20px;
        height: 20px;
    }

    .sm-divider {
        margin: 21px 0 18px;
        gap: 13px;
        font-size: 12px;
    }

    .sm-alternate {
        min-height: 53px;
        padding: 11px 15px;
        grid-template-columns: 26px 1fr 26px;
        font-size: 13px;
    }

    .sm-alternate svg {
        width: 20px;
        height: 20px;
    }

    .sm-signup {
        margin-top: 19px;
        font-size: 13px;
    }

    .sm-home {
        display: none;
    }

    .sm-home svg {
        width: 12px;
        height: 12px;
    }

    .sm-art {
        width: 100%;
        min-height: 330px;
        margin-top: 10px;
        border-radius: 0;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 100%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 100%);
    }

    .sm-art img {
        width: 100%;
        height: 330px;
        min-height: 330px;
        object-fit: cover;
        object-position: 50% 50%;
    }

    .sm-footer {
        display: none;
    }
}

@media (max-width: 390px) {
    .sm-main {
        padding-top: clamp(86px, 14vh, 112px);
    }

    .sm-auth-card {
        width: calc(100% - 32px);
        margin-inline: 16px;
    }

    .sm-alternate {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-page *,
    .sm-page *::before,
    .sm-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
