:root {
    --up-blue: #3b82f6;
    --up-purple: #9344b9;

    --up-text: #171717;
    --up-muted: #8d8d8d;

    --up-border: #b8b8b8;

    --up-background:
        linear-gradient(
            135deg,
            #3f83d9 0%,
            #665cc9 50%,
            #9746b5 100%
        );
}


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

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


body.up-login-page {

    margin: 0;

    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


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

.up-login-wrapper {

    width: 100%;
    min-height: 100vh;

    display: flex;

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

    padding: 25px;

    background: var(--up-background);
}


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

.up-login-card {

    width: 100%;
    max-width: 400px;

    padding: 48px 38px 32px;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.10);
}


/* =========================================================
   LOGO
   ========================================================= */

.up-login-logo {

    width: 52px;
    height: 52px;

    display: flex;

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

    margin: 0 auto 18px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--up-blue),
            var(--up-purple)
        );

    color: #ffffff;

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

    box-shadow:
        0 7px 18px
        rgba(99, 92, 210, .25);
}


/* =========================================================
   TITLE
   ========================================================= */

.up-login-title {

    margin: 0;

    text-align: center;

    color: var(--up-text);

    font-size: 27px;

    font-weight: 700;

    letter-spacing: -.03em;
}


.up-login-subtitle {

    margin:
        7px 0 30px;

    text-align: center;

    color: var(--up-muted);

    font-size: 12px;
}


/* =========================================================
   ALERT
   ========================================================= */

.up-login-alert {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    border-radius: 5px;

    font-size: 12px;
}


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

.up-login-form {

    width: 100%;
}


.up-login-field {

    margin-bottom: 25px;
}


.up-login-field label {

    display: block;

    margin-bottom: 7px;

    color: #9a9a9a;

    font-size: 12px;

    font-weight: 400;
}


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

.up-login-field .form-control {

    height: 38px;

    padding:
        5px 3px;

    border: 0;

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

    border-radius: 0;

    background: transparent;

    color: var(--up-text);

    font-size: 13px;

    box-shadow: none;
}


.up-login-field .form-control:focus {

    border-color:
        var(--up-primary, #6c63d9);

    box-shadow: none;
}


.up-login-field .form-control::placeholder {

    color: #b2b2b2;

    opacity: 1;
}


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

.up-password-wrapper {

    position: relative;
}


.up-password-wrapper .form-control {

    padding-right: 35px;
}


.up-password-toggle {

    position: absolute;

    right: 2px;
    bottom: 3px;

    width: 30px;
    height: 30px;

    display: flex;

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

    padding: 0;

    border: 0;

    background: transparent;

    color: #a0a0a0;

    cursor: pointer;
}


.up-password-toggle:hover {

    color: var(--up-purple);
}


/* =========================================================
   REMEMBER
   ========================================================= */

.up-remember {

    margin:
        -3px 0 22px;
}


.up-remember .form-check-input {

    margin-top: .18em;

    width: 13px;
    height: 13px;

    border-color: #bdbdbd;

    box-shadow: none;
}


.up-remember .form-check-input:checked {

    background-color:
        var(--up-purple);

    border-color:
        var(--up-purple);
}


.up-remember .form-check-label {

    color: #999999;

    font-size: 11px;

    cursor: pointer;
}


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

.up-login-button {

    width: 100%;

    height: 42px;

    border: 0;

    border-radius: 0;

    background:
        linear-gradient(
            100deg,
            var(--up-blue),
            var(--up-purple)
        );

    color: #ffffff;

    font-size: 12px;

    font-weight: 500;

    transition:
        opacity .15s ease,
        transform .15s ease;
}


.up-login-button:hover {

    background:
        linear-gradient(
            100deg,
            #3478d2,
            #863ca8
        );

    color: #ffffff;

    opacity: .95;

    transform: translateY(-1px);
}


.up-login-button:active {

    transform:
        translateY(0);
}


/* =========================================================
   LINKS
   ========================================================= */

.up-login-links {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    margin-top: 27px;

    text-align: center;

    color: #8e8e8e;

    font-size: 10px;
}


.up-login-links a {

    color: #6e6e6e;

    text-decoration: none;
}


.up-login-links a:hover {

    color: var(--up-purple);

    text-decoration: underline;
}


.up-login-links span a {

    color:
        var(--up-purple);

    font-weight: 600;
}


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

.up-login-footer {

    margin-top: 28px;

    padding-top: 16px;

    border-top:
        1px solid
        #eeeeee;

    text-align: center;

    color: #b0b0b0;

    font-size: 9px;
}


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

@media (max-width: 575.98px) {

    .up-login-wrapper {

        padding: 18px;
    }


    .up-login-card {

        max-width: 360px;

        padding:
            38px 28px 28px;

        border-radius: 8px;
    }


    .up-login-title {

        font-size: 25px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .up-login-wrapper {

        padding: 10px;
    }


    .up-login-card {

        padding:
            32px 22px 24px;
    }

}