* {
    box-sizing: border-box;
}


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


body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f7f8fa;
    color: #18212f;
}


button,
input {
    font: inherit;
}


button {
    -webkit-tap-highlight-color:
        transparent;
}


/* =====================================================
   LAYOUT
   ===================================================== */


.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(460px, 0.95fr)
        minmax(520px, 1.05fr);
}


/* =====================================================
   BRAND PANEL
   ===================================================== */


.login-brand-panel {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    padding:
        42px
        clamp(42px, 5vw, 82px);

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(100, 126, 170, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(62, 94, 145, 0.18),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #101722 0%,
            #151f2d 48%,
            #0d131c 100%
        );

    color: #ffffff;
}


.login-brand-panel::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -280px;
    top: -180px;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 50%;
}


.login-brand-panel::after {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    left: -500px;
    bottom: -500px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);

    border-radius: 50%;
}


.login-brand-top,
.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}


.login-brand-top {
    flex-shrink: 0;
}


.login-logo {
    display: flex;

    align-items: center;

    gap: 12px;
}


.login-logo-mark {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #ffffff;

    color: #162132;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.04em;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.13);
}


.login-logo-name {
    color: #ffffff;

    font-size: 22px;
    font-weight: 730;

    letter-spacing: -0.025em;
}


.login-brand-content {
    width: 100%;

    max-width: 650px;

    margin: auto 0;
    padding: 72px 0;
}


.login-eyebrow {
    display: inline-flex;

    align-items: center;

    min-height: 30px;

    margin-bottom: 24px;

    padding:
        6px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.055);

    color: #b9c6d8;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


.login-brand-content h1 {
    max-width: 620px;

    margin:
        0 0 22px;

    color: #ffffff;

    font-size:
        clamp(
            38px,
            4vw,
            60px
        );

    line-height: 1.04;

    font-weight: 720;

    letter-spacing: -0.045em;
}


.login-brand-description {
    max-width: 560px;

    margin: 0;

    color: #aebbc9;

    font-size: 17px;
    line-height: 1.65;
}


.login-feature-list {
    display: grid;

    gap: 23px;

    max-width: 550px;

    margin-top: 52px;
}


.login-feature {
    display: grid;

    grid-template-columns:
        30px 1fr;

    gap: 14px;
}


.feature-icon {
    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.055);
}


.feature-icon span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #90a8c8;

    box-shadow:
        0 0 0 4px
        rgba(144, 168, 200, 0.11);
}


.login-feature strong {
    display: block;

    margin-bottom: 5px;

    color: #f5f7fa;

    font-size: 14px;
    font-weight: 680;
}


.login-feature p {
    margin: 0;

    color: #8796a9;

    font-size: 13px;
    line-height: 1.55;
}


.login-brand-footer {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #69798d;

    font-size: 11px;

    letter-spacing: 0.02em;
}


.footer-divider {
    color: #455365;
}


/* =====================================================
   LOGIN SIDE
   ===================================================== */


.login-main {
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding:
        56px
        clamp(28px, 7vw, 110px)
        28px;

    background:
        linear-gradient(
            180deg,
            #fbfcfd 0%,
            #f6f8fa 100%
        );
}


.login-card {
    width: 100%;

    max-width: 450px;
}


.login-mobile-brand {
    display: none;
}


.login-card-header {
    margin-bottom: 31px;
}


.login-status-pill {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    padding:
        6px 10px;

    border:
        1px solid #dfe4ea;

    border-radius: 999px;

    background: #ffffff;

    color: #697485;

    font-size: 11px;
    font-weight: 650;

    box-shadow:
        0 2px 8px
        rgba(15, 23, 42, 0.025);
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2fa66a;

    box-shadow:
        0 0 0 3px
        rgba(47, 166, 106, 0.10);
}


.login-card-header h2 {
    margin:
        0 0 10px;

    color: #172131;

    font-size: 36px;
    line-height: 1.15;

    font-weight: 730;

    letter-spacing: -0.035em;
}


.login-card-header p {
    margin: 0;

    color: #7a8493;

    font-size: 15px;
    line-height: 1.5;
}


/* =====================================================
   ERROR
   ===================================================== */


.login-error {
    display: grid;

    grid-template-columns:
        32px 1fr;

    gap: 12px;

    margin-bottom: 22px;

    padding: 14px;

    border:
        1px solid #f0c9c9;

    border-radius: 11px;

    background: #fff6f6;

    color: #812929;
}


.login-error-icon {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f9dddd;

    font-size: 14px;
    font-weight: 800;
}


.login-error strong {
    display: block;

    margin-bottom: 3px;

    font-size: 13px;
}


.login-error p {
    margin: 0;

    color: #a24d4d;

    font-size: 12px;
    line-height: 1.45;
}


/* =====================================================
   FORM
   ===================================================== */


.login-form {
    width: 100%;
}


.login-field {
    margin-bottom: 20px;
}


.login-field label {
    display: block;

    margin-bottom: 8px;

    color: #354052;

    font-size: 13px;
    font-weight: 650;
}


.input-wrapper {
    position: relative;
}


.login-field input {
    width: 100%;
    height: 52px;

    padding:
        0 15px;

    border:
        1px solid #d9dfe7;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #18212f;

    font-size: 14px;

    box-shadow:
        0 1px 2px
        rgba(15, 23, 42, 0.025);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.password-wrapper input {
    padding-right: 52px;
}


.login-field input::placeholder {
    color: #a0a9b5;
}


.login-field input:hover {
    border-color: #c6ced8;
}


.login-field input:focus {
    border-color: #778ba7;

    box-shadow:
        0 0 0 4px
        rgba(83, 108, 143, 0.09);
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #8490a0;

    cursor: pointer;

    transform:
        translateY(-50%);
}


.password-toggle:hover {
    background: #f2f4f7;

    color: #465469;
}


.password-toggle svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.password-toggle.active {
    color: #2e3e55;
}


.field-error {
    margin-top: 6px;

    color: #bd3535;

    font-size: 11px;
}


.login-submit {
    width: 100%;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 7px;

    padding:
        0 18px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #243247 0%,
            #1b2738 100%
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(24, 36, 53, 0.15);

    transition:
        transform 0.12s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.login-submit:hover {
    background:
        linear-gradient(
            180deg,
            #2b3b53 0%,
            #202e42 100%
        );

    box-shadow:
        0 10px 25px
        rgba(24, 36, 53, 0.20);
}


.login-submit:active {
    transform:
        translateY(1px);
}


.login-submit svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   SECURITY
   ===================================================== */


.login-security-note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 23px;

    color: #929baa;

    font-size: 11px;
    line-height: 1.4;

    text-align: center;
}


.login-security-note svg {
    width: 14px;
    height: 14px;

    flex-shrink: 0;

    fill: none;

    stroke: #8894a4;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.login-page-footer {
    width: 100%;

    max-width: 450px;

    margin-top: auto;
    padding-top: 36px;

    color: #a2aab5;

    font-size: 11px;

    text-align: center;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */


@media (
    max-width: 980px
) {

    .login-page {
        display: block;
    }


    .login-brand-panel {
        display: none;
    }


    .login-main {
        min-height: 100vh;

        padding:
            36px 24px
            24px;
    }


    .login-card {
        margin: auto;
    }


    .login-mobile-brand {
        display: flex;

        align-items: center;

        gap: 11px;

        margin-bottom: 64px;
    }


    .login-mobile-brand
    .login-logo-mark {
        width: 38px;
        height: 38px;

        background: #1c293b;

        color: #ffffff;

        font-size: 18px;
    }


    .login-mobile-brand
    .login-logo-name {
        color: #18212f;

        font-size: 20px;
    }

}


@media (
    max-width: 520px
) {

    .login-main {
        justify-content:
            flex-start;

        padding:
            26px 20px
            22px;
    }


    .login-mobile-brand {
        margin-bottom: 54px;
    }


    .login-card-header h2 {
        font-size: 31px;
    }


    .login-field input,
    .login-submit {
        height: 50px;
    }

}
