/* =========================================================
   LITTLE THINGS POS
   LOGIN
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {

    --pink: #d81787;
    --pink-dark: #c41178;

    --blue: #168bc4;
    --yellow: #ffd400;
    --green: #68b84d;

    --dark: #25243a;
    --muted: #858392;

    --light: #fffdfb;

    --border: #eeeaf0;

}


/* =========================================================
   BASE
========================================================= */

html {
    min-height: 100%;
}

body {

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #fffdfb 55%,
            #faf8f7 100%
        );

    color: var(--dark);

}


/* =========================================================
   PAGE
========================================================= */

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 35px;

    position: relative;

    overflow: hidden;

}


/* =========================================================
   CARD
========================================================= */

.login-card {

    position: relative;

    z-index: 5;

    width: min(
        450px,
        100%
    );

    background:
        rgba(255,255,255,.97);

    border:
        1px solid rgba(
            255,
            255,
            255,
            .8
        );

    border-radius: 34px;

    padding:
        42px
        42px
        30px;

    box-shadow:
        0 30px 80px
        rgba(40,30,70,.13),

        0 5px 20px
        rgba(40,30,70,.05);

    backdrop-filter:
        blur(10px);

    animation:
        cardIn .55s
        ease-out;

}


/* =========================================================
   CARD ANIMATION
========================================================= */

@keyframes cardIn {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(.98);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


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

.brand {

    text-align: center;

    margin-bottom: 20px;

}


.brand-logo {

    display: block;

    width: 250px;

    max-width: 82%;

    height: auto;

    margin:
        0 auto;

    object-fit: contain;

}


/* =========================================================
   HEADING
========================================================= */

.login-heading {

    text-align: center;

    margin-bottom: 28px;

}


.welcome-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        6px
        12px;

    border-radius: 50px;

    background:
        rgba(255,212,0,.18);

    color:
        #927900;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.8px;

    margin-bottom: 11px;

}


.login-heading h2 {

    font-size: 27px;

    line-height: 1.1;

    margin-bottom: 7px;

    font-weight: 800;

    letter-spacing: -.5px;

}


.login-heading p {

    color:
        var(--muted);

    font-size: 14px;

}


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

.error-message {

    display: flex;

    align-items: center;

    gap: 10px;

    background:
        #fff0f4;

    color:
        #b51b4c;

    border:
        1px solid #ffd5e1;

    border-radius: 13px;

    padding:
        12px
        14px;

    margin-bottom: 18px;

    font-size: 13px;

    font-weight: 600;

}


.error-icon {

    width: 22px;

    height: 22px;

    flex:
        0 0 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        #d81787;

    color: white;

    font-weight: 900;

    font-size: 12px;

}


/* =========================================================
   FIELD
========================================================= */

.field {

    margin-bottom: 18px;

}


.field label {

    display: block;

    font-size: 13px;

    font-weight: 800;

    margin-bottom: 8px;

    color:
        var(--dark);

}


/* =========================================================
   INPUT WRAP
========================================================= */

.input-wrap {

    position: relative;

    width: 100%;

}


.input-icon {

    position: absolute;

    left: 16px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 19px;

    height: 19px;

    display: flex;

    align-items: center;

    justify-content: center;

    pointer-events: none;

}


.input-icon svg {

    width: 18px;

    height: 18px;

    fill:
        #aaa6b0;

    transition:
        .2s ease;

}


/* =========================================================
   INPUT
========================================================= */

.field input {

    width: 100%;

    height: 56px;

    border:
        2px solid
        var(--border);

    border-radius: 16px;

    padding:
        0 48px;

    font-size: 15px;

    color:
        var(--dark);

    background:
        #fff;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.field input::placeholder {

    color:
        #b8b5bd;

}


.field input:hover {

    border-color:
        #ddd8e0;

}


.field input:focus {

    border-color:
        var(--blue);

    background:
        #fff;

    box-shadow:
        0 0 0 4px
        rgba(
            22,
            139,
            196,
            .10
        );

}


.input-wrap:focus-within
.input-icon svg {

    fill:
        var(--blue);

}


/* =========================================================
   PASSWORD BUTTON
========================================================= */

.toggle-password {

    position: absolute;

    right: 10px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 38px;

    height: 38px;

    padding: 0;

    margin: 0;

    border: 0;

    border-radius: 11px;

    background:
        transparent;

    color:
        #9995a1;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow: none;

}


.toggle-password:hover {

    transform:
        translateY(-50%);

    background:
        #f7f5f7;

    box-shadow: none;

}


.toggle-password svg {

    width: 19px;

    height: 19px;

    fill:
        #9995a1;

}


.toggle-password .eye-open {

    fill:
        var(--pink);

}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {

    width: 100%;

    height: 57px;

    border: 0;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #e21a8b,
            #d81787
        );

    color: white;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    margin-top: 7px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        opacity .15s ease;

    box-shadow:
        0 14px 28px
        rgba(
            216,
            23,
            135,
            .24
        );

}


.login-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 18px 34px
        rgba(
            216,
            23,
            135,
            .30
        );

}


.login-button:active {

    transform:
        translateY(0);

}


.login-button:disabled {

    cursor:
        wait;

    opacity:
        .85;

    transform:
        none;

}


/* =========================================================
   ARROW
========================================================= */

.button-arrow {

    width: 19px;

    height: 19px;

    fill: none;

    stroke: white;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        transform .2s ease;

}


.login-button:hover
.button-arrow {

    transform:
        translateX(3px);

}


/* =========================================================
   LOADER
========================================================= */

.button-loader {

    display: none;

    width: 17px;

    height: 17px;

    border:
        2px solid
        rgba(255,255,255,.35);

    border-top-color:
        white;

    border-radius: 50%;

    animation:
        spin .7s
        linear
        infinite;

}


.login-button.loading
.button-loader {

    display: block;

}


.login-button.loading
.button-arrow {

    display: none;

}


@keyframes spin {

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    text-align: center;

    margin-top: 25px;

    color:
        #aaa6b0;

    font-size: 11px;

}


.footer-dot {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background:
        var(--green);

}


/* =========================================================
   DECORATIVE CIRCLES
========================================================= */

.decor {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

}


.decor-1 {

    width: 280px;

    height: 280px;

    background:
        #ffe000;

    left: -120px;

    top: -80px;

    opacity: .88;

}


.decor-2 {

    width: 220px;

    height: 220px;

    background:
        var(--pink);

    right: -90px;

    top: 12%;

    opacity: .88;

}


.decor-3 {

    width: 190px;

    height: 190px;

    background:
        var(--blue);

    left: -80px;

    bottom: 5%;

    opacity: .88;

}


.decor-4 {

    width: 250px;

    height: 250px;

    background:
        var(--green);

    right: -110px;

    bottom: -90px;

    opacity: .88;

}


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

@media (max-width: 600px) {

    .login-page {

        padding: 18px;

    }


    .login-card {

        width: 100%;

        padding:
            34px
            25px
            25px;

        border-radius: 27px;

    }


    .brand-logo {

        width: 220px;

        max-width: 78%;

    }


    .login-heading h2 {

        font-size: 24px;

    }


    .decor {

        opacity: .40;

    }


    .decor-1 {

        width: 180px;

        height: 180px;

        left: -100px;

        top: -70px;

    }


    .decor-2 {

        width: 150px;

        height: 150px;

        right: -85px;

    }


    .decor-3 {

        width: 140px;

        height: 140px;

        left: -80px;

    }


    .decor-4 {

        width: 170px;

        height: 170px;

        right: -90px;

        bottom: -70px;

    }

}


@media (max-height: 720px) {

    .login-page {

        align-items:
            flex-start;

        padding-top:
            25px;

        padding-bottom:
            25px;

    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible {

    outline:
        3px solid
        rgba(
            22,
            139,
            196,
            .22
        );

    outline-offset:
        2px;

}