﻿:root {
    --login-background: #f5f7fb;
    --login-surface: #ffffff;
    --login-sidebar: #0b1220;
    --login-primary: #5b5ce2;
    --login-primary-hover: #4b4dc8;
    --login-text: #192238;
    --login-muted: #748096;
    --login-border: #dfe5ef;
    --login-danger: #d94747;
    --login-danger-soft: #fff1f1;
    --login-success: #21c187;
    --login-radius: 16px;
    --login-shadow: 0 24px 80px rgba(19, 31, 53, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

    body.login-body {
        margin: 0;
        color: var(--login-text);
        background: var(--login-background);
        font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
    }

button,
input {
    font: inherit;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(500px, 1.05fr) minmax(460px, 0.95fr);
}

.login-showcase {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 42px 50px 30px;
    color: #ffffff;
    background: radial-gradient( circle at 80% 10%, rgba(104, 106, 238, 0.42), transparent 32% ), linear-gradient( 145deg, #080e19 0%, #101a2f 52%, #20265e 100% );
}

.showcase-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.showcase-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.showcase-orb-one {
    top: 18%;
    right: -140px;
    width: 380px;
    height: 380px;
    background: rgba(96, 98, 229, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-orb-two {
    bottom: -160px;
    left: -90px;
    width: 360px;
    height: 360px;
    background: rgba(32, 197, 139, 0.07);
    border: 45px solid rgba(255, 255, 255, 0.025);
}

.showcase-grid {
    position: absolute;
    inset: 0;
    opacity: 0.09;
    background-image: linear-gradient( rgba(255, 255, 255, 0.12) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px );
    background-size: 46px 46px;
    mask-image: linear-gradient( to bottom, transparent, black 25%, black 75%, transparent );
}

.showcase-content,
.showcase-footer {
    position: relative;
    z-index: 1;
}

.showcase-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 13px;
    color: #ffffff;
    text-decoration: none;
}

    .login-brand:hover {
        color: #ffffff;
    }

.login-brand-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient( 135deg, #7375f6, #4a4cbf );
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(60, 61, 176, 0.42);
}

    .login-brand-logo svg {
        width: 25px;
        height: 25px;
        fill: currentColor;
    }

.login-brand-copy {
    display: flex;
    flex-direction: column;
}

    .login-brand-copy strong {
        font-size: 18px;
        font-weight: 780;
        letter-spacing: -0.3px;
    }

    .login-brand-copy small {
        margin-top: 3px;
        color: #8491a8;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

.showcase-main {
    max-width: 690px;
    margin: auto 0;
    padding: 70px 0 55px;
}

.showcase-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    margin-bottom: 21px;
    color: #d8dcff;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

    .showcase-label::before {
        width: 8px;
        height: 8px;
        content: "";
        background: var(--login-success);
        border-radius: 50%;
        box-shadow: 0 0 0 5px rgba(33, 193, 135, 0.12);
    }

.showcase-main h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(38px, 4.7vw, 64px);
    font-weight: 790;
    letter-spacing: -2.3px;
    line-height: 1.06;
}

.showcase-main p {
    max-width: 620px;
    margin: 23px 0 0;
    color: #acb7ca;
    font-size: 15px;
    line-height: 1.8;
}

.showcase-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.showcase-feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.feature-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    color: #b9beff;
    background: rgba(102, 104, 231, 0.14);
    border-radius: 11px;
}

    .feature-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.showcase-feature div {
    display: flex;
    flex-direction: column;
}

.showcase-feature strong {
    font-size: 12px;
    font-weight: 740;
}

.showcase-feature span {
    margin-top: 5px;
    color: #8591a7;
    font-size: 10px;
    line-height: 1.55;
}

.showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    color: #69768d;
    font-size: 10px;
}

.login-form-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background: radial-gradient( circle at 100% 0%, rgba(91, 92, 226, 0.08), transparent 27% ), var(--login-surface);
}

.login-form-container {
    width: 100%;
    max-width: 440px;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 11px;
    margin-bottom: 42px;
}

.mobile-brand-logo {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient( 135deg, #6769eb, #4749b8 );
    border-radius: 12px;
}

    .mobile-brand-logo svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

.mobile-brand strong {
    font-size: 18px;
    font-weight: 780;
}

.login-heading {
    margin-bottom: 32px;
}

.login-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: var(--login-primary);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0;
    color: var(--login-text);
    font-size: 34px;
    font-weight: 790;
    letter-spacing: -1px;
}

.login-heading p {
    margin: 11px 0 0;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.7;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.login-validation-summary:empty {
    display: none;
}

.login-validation-summary {
    padding: 13px 15px;
    color: var(--login-danger);
    background: var(--login-danger-soft);
    border: 1px solid #ffd6d6;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.6;
}

    .login-validation-summary ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

.login-field {
    display: flex;
    flex-direction: column;
}

.login-label {
    margin-bottom: 8px;
    color: #354159;
    font-size: 11px;
    font-weight: 720;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #8c98ab;
    pointer-events: none;
    transform: translateY(-50%);
}

    .login-input-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.login-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px 0 48px;
    color: var(--login-text);
    background: #fbfcfe;
    border: 1px solid var(--login-border);
    border-radius: 13px;
    outline: none;
    font-size: 13px;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.login-password-input {
    padding-right: 51px;
}

.login-input::placeholder {
    color: #a5afbf;
}

.login-input:hover {
    border-color: #cbd3df;
}

.login-input:focus {
    background: #ffffff;
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.1);
}

.input-validation-error {
    border-color: #ee8d8d;
    box-shadow: 0 0 0 3px rgba(217, 71, 71, 0.07);
}

.login-field-error {
    min-height: 15px;
    margin-top: 6px;
    color: var(--login-danger);
    font-size: 10px;
}

    .login-field-error:empty {
        min-height: 0;
        margin-top: 0;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #8793a8;
    background: transparent;
    border: 0;
    border-radius: 9px;
    transform: translateY(-50%);
}

    .password-toggle:hover {
        color: var(--login-primary);
        background: #f0f1ff;
    }

    .password-toggle svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.password-hide-icon {
    display: none;
}

.password-toggle.password-visible .password-show-icon {
    display: none;
}

.password-toggle.password-visible .password-hide-icon {
    display: block;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #59667a;
    cursor: pointer;
    font-size: 11px;
    font-weight: 620;
    user-select: none;
}

.remember-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.remember-control {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    color: transparent;
    background: #ffffff;
    border: 1px solid #ccd4e1;
    border-radius: 6px;
    transition: color 130ms ease, background-color 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

    .remember-control svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
    }

.remember-checkbox:checked + .remember-control {
    color: #ffffff;
    background: var(--login-primary);
    border-color: var(--login-primary);
}

.remember-checkbox:focus-visible + .remember-control {
    box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.12);
}

.login-submit-button {
    position: relative;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 19px;
    color: #ffffff;
    background: linear-gradient( 135deg, #6466e8, #4e50c7 );
    border: 0;
    border-radius: 13px;
    box-shadow: 0 14px 30px rgba(77, 79, 194, 0.25);
    font-size: 12px;
    font-weight: 750;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

    .login-submit-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 35px rgba(77, 79, 194, 0.31);
    }

    .login-submit-button:active {
        transform: translateY(0);
    }

    .login-submit-button:disabled {
        cursor: wait;
        opacity: 0.82;
    }

.login-button-arrow {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.login-button-loader {
    width: 18px;
    height: 18px;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin 700ms linear infinite;
}

.login-submit-button.loading .login-button-loader {
    display: block;
}

.login-submit-button.loading .login-button-arrow {
    display: none;
}

.login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px;
    margin-top: 25px;
    color: #7a879b;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 13px;
}

.security-note-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #7784d7;
}

    .security-note-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.login-security-note p {
    margin: 0;
    font-size: 10px;
    line-height: 1.65;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1050px) {
    .login-shell {
        grid-template-columns: minmax(420px, 0.9fr) minmax(440px, 1.1fr);
    }

    .login-showcase {
        padding-right: 36px;
        padding-left: 36px;
    }

    .showcase-features {
        grid-template-columns: 1fr;
    }

    .showcase-feature:nth-child(2) {
        display: none;
    }
}

@media (max-width: 820px) {
    .login-shell {
        display: block;
    }

    .login-showcase {
        display: none;
    }

    .login-form-section {
        min-height: 100vh;
        padding: 34px 22px;
    }

    .mobile-brand {
        display: flex;
    }
}

@media (max-width: 479.98px) {
    .login-form-section {
        align-items: flex-start;
        padding: 26px 17px;
    }

    .login-form-container {
        padding-top: 9px;
    }

    .mobile-brand {
        margin-bottom: 48px;
    }

    .login-heading h2 {
        font-size: 29px;
    }

    .login-heading p {
        max-width: 330px;
    }

    .login-input {
        min-height: 50px;
    }

    .login-submit-button {
        min-height: 51px;
    }
}
