* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primary: #4f46d8;
    --primary-dark: #3f37c9;

    --purple-light: #eef0ff;

    --text-dark: #172554;
    --text: #334155;
    --muted: #64748b;

    --border: #e2e8f0;

    --white: #ffffff;

    --danger-bg: #fff1f2;
    --danger: #be123c;

}

body {

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f5f7ff;

    color: var(--text-dark);

}


/* =========================================
   MAIN PAGE
========================================= */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 46%)
        1fr;

}


/* =========================================
   LEFT BRAND PANEL
========================================= */

.login-brand {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #3f36c9,
            #5148db 55%,
            #7068ed
        );

    color: white;

    display: flex;

    align-items: center;

    padding: 70px;

}


.brand-content {

    position: relative;

    z-index: 2;

    max-width: 540px;

}


/* LOGO */

.brand-mark {

    width: 58px;
    height: 58px;

    border-radius: 17px;

    background: rgba(255,255,255,.16);

    border:
        1px solid rgba(255,255,255,.3);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 20px;

}

.brand-name {

    font-size: 29px;

    font-weight: 700;

    letter-spacing: -.5px;

}


.brand-subtitle {

    font-size: 14px;

    opacity: .8;

    margin-top: 2px;

}


.brand-message {

    margin-top: 90px;

}


.brand-message h1 {

    font-size: 44px;

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin-bottom: 22px;

}


.brand-message p {

    font-size: 17px;

    line-height: 1.7;

    max-width: 450px;

    color: rgba(255,255,255,.82);

}


/* FEATURES */

.brand-features {

    margin-top: 40px;

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.brand-feature {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 14px;

}


.feature-icon {

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: rgba(255,255,255,.18);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;

}


/* BACKGROUND DECORATION */

.brand-background-circle {

    position: absolute;

    border-radius: 50%;

    background:
        rgba(255,255,255,.07);

}


.circle-one {

    width: 450px;
    height: 450px;

    right: -180px;
    top: -100px;

}


.circle-two {

    width: 350px;
    height: 350px;

    left: -180px;
    bottom: -130px;

}


/* =========================================
   LOGIN PANEL
========================================= */

.login-panel {

    background: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 50px;

}


.login-box {

    width: 100%;

    max-width: 460px;

}


/* =========================================
   HEADING
========================================= */

.login-heading {

    margin-bottom: 32px;

}


.welcome-label {

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.login-heading h2 {

    font-size: 34px;

    line-height: 1.2;

    margin-top: 8px;

    color: var(--text-dark);

}


.login-heading p {

    margin-top: 9px;

    color: var(--muted);

    font-size: 15px;

}


/* =========================================
   FORM
========================================= */

.form-group {

    margin-bottom: 22px;

}


.form-group label {

    display: block;

    font-size: 13px;

    font-weight: 650;

    color: #273451;

    margin-bottom: 9px;

}


.password-label-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.password-label-row a {

    font-size: 12px;

    color: var(--primary);

    text-decoration: none;

    font-weight: 600;

}


.input-wrapper {

    position: relative;

}


.input-wrapper input {

    width: 100%;

    height: 52px;

    border:
        1px solid var(--border);

    border-radius: 11px;

    padding:
        0 45px;

    font-size: 14px;

    color: var(--text-dark);

    outline: none;

    background: #fbfcff;

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;

}


.input-wrapper input:focus {

    border-color: var(--primary);

    background: white;

    box-shadow:
        0 0 0 4px rgba(79,70,216,.08);

}


.input-wrapper input::placeholder {

    color: #94a3b8;

}


.input-icon {

    position: absolute;

    left: 17px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #7c83a8;

    font-size: 13px;

    font-weight: 700;

}


.password-toggle {

    position: absolute;

    right: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 15px;

}


/* =========================================
   OPTIONS
========================================= */

.login-options {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}


.remember-option {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #64748b;

    font-size: 13px;

    cursor: pointer;

}


.remember-option input {

    width: 15px;
    height: 15px;

    accent-color: var(--primary);

}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {

    width: 100%;

    height: 54px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #5046d8,
            #635bdf
        );

    color: white;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    box-shadow:
        0 8px 20px
        rgba(79,70,216,.20);

    transition:
        transform .2s,
        box-shadow .2s;

}


.login-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 25px
        rgba(79,70,216,.28);

}


.button-arrow {

    font-size: 20px;

}


/* =========================================
   ERROR
========================================= */

.login-error {

    background: var(--danger-bg);

    color: var(--danger);

    border:
        1px solid #fecdd3;

    border-radius: 9px;

    padding: 12px 14px;

    font-size: 13px;

    margin-bottom: 22px;

    display: flex;

    align-items: center;

    gap: 10px;

}


.error-icon {

    width: 21px;
    height: 21px;

    border-radius: 50%;

    background: #ffe4e6;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: bold;

}


/* =========================================
   FOOTER
========================================= */

.login-footer {

    text-align: center;

    margin-top: 42px;

}


.security-note {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    font-size: 12px;

    color: #64748b;

    margin-bottom: 12px;

}


.login-footer p {

    font-size: 11px;

    color: #94a3b8;

}


/* =========================================
   MOBILE BRAND
========================================= */

.mobile-brand {

    display: none;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .login-page {

        grid-template-columns: 1fr;

    }


    .login-brand {

        display: none;

    }


    .login-panel {

        min-height: 100vh;

        padding: 30px 22px;

    }


    .mobile-brand {

        display: flex;

        align-items: center;

        gap: 12px;

        margin-bottom: 50px;

    }


    .mobile-brand .brand-mark {

        margin: 0;

        width: 45px;
        height: 45px;

        border-radius: 13px;

        background: var(--primary);

        color: white;

    }


    .mobile-brand strong {

        display: block;

        font-size: 18px;

    }


    .mobile-brand span {

        display: block;

        color: #64748b;

        font-size: 11px;

    }

}


@media (max-width: 480px) {

    .login-panel {

        padding: 25px 18px;

    }


    .login-heading h2 {

        font-size: 29px;

    }


    .login-heading {

        margin-bottom: 27px;

    }

}