/* =========================================================
   NIVOLIFY LOGIN PAGE
   Desktop + Mobile Responsive
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;
}


body {
    width: 100%;
    min-height: 100vh;

    font-family: "Poppins", sans-serif;

    background:
        linear-gradient(
            135deg,
            #e2e2e2 0%,
            #c9d6ff 100%
        );

    color: #333;

    overflow-x: hidden;
}


/* =========================================================
   PAGE
   ========================================================= */

.niv-login-page {

    width: 100%;
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.niv-login-container {

    position: relative;

    width: 850px;
    max-width: 100%;

    min-height: 550px;

    display: flex;

    background: #ffffff;

    border-radius: 30px;

    overflow: hidden;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.18);

}


/* =========================================================
   LEFT BRAND PANEL
   ========================================================= */

.niv-login-brand {

    position: relative;

    width: 43%;

    min-height: 550px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 45px 35px;

    color: #ffffff;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #7494ec 0%,
            #5878d8 50%,
            #4967c7 100%
        );

}


/* Decorative circle */

.niv-login-brand::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.08);

    top: -180px;
    left: -180px;

}


/* Decorative circle */

.niv-login-brand::after {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.07);

    right: -150px;
    bottom: -150px;

}


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.niv-brand-content {

    position: relative;

    z-index: 2;

    width: 100%;

}


.niv-brand-logo {

    width: 82px;
    height: 82px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        rgba(255,255,255,.18);

    border:
        1px solid
        rgba(255,255,255,.30);

    font-size: 48px;

    font-weight: 700;

    color: #ffffff;

    box-shadow:
        0 15px 30px
        rgba(0,0,0,.12);

}


.niv-brand-content h1 {

    font-size: 34px;

    line-height: 1.2;

    font-weight: 700;

    margin-bottom: 15px;

}


.niv-brand-content p {

    max-width: 300px;

    margin: 0 auto;

    font-size: 14px;

    line-height: 1.8;

    color:
        rgba(255,255,255,.88);

}


.niv-brand-line {

    width: 55px;
    height: 3px;

    margin: 25px auto;

    border-radius: 10px;

    background: #ffffff;

}


.niv-brand-small {

    font-size: 13px;

    font-weight: 500;

    color:
        rgba(255,255,255,.80);

}


/* =========================================================
   LOGIN FORM AREA
   ========================================================= */

.niv-login-form-area {

    width: 57%;

    min-height: 550px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    padding: 45px 50px;

}


.niv-login-form-inner {

    width: 100%;

    max-width: 390px;

}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.niv-mobile-logo {

    display: none;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 20px;

}


.niv-mobile-logo-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #7494ec;

    color: #ffffff;

    font-size: 23px;

    font-weight: 700;

}


.niv-mobile-logo span {

    font-size: 23px;

    font-weight: 700;

    color: #333;

}


/* =========================================================
   HEADING
   ========================================================= */

.niv-login-form-inner h2 {

    font-size: 36px;

    line-height: 1.2;

    color: #333;

    font-weight: 700;

    margin-bottom: 8px;

}


.niv-login-subtitle {

    font-size: 13.5px;

    line-height: 1.7;

    color: #888;

    margin-bottom: 30px;

}


/* =========================================================
   MESSAGE
   ========================================================= */

.niv-login-message {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    padding: 12px 14px;

    margin-bottom: 20px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;

}


.niv-login-message.error {

    color: #b42318;

    background: #fff1f0;

    border:
        1px solid #ffd4d0;

}


.niv-login-message i {

    flex-shrink: 0;

}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.niv-input-group {

    width: 100%;

    margin-bottom: 20px;

}


.niv-input-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;

    color: #444;

}


/* =========================================================
   INPUT BOX
   ========================================================= */

.niv-input-box {

    position: relative;

    width: 100%;

}


.niv-input-box > i {

    position: absolute;

    left: 17px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #888;

    font-size: 16px;

    pointer-events: none;

    z-index: 2;

}


.niv-input-box input {

    width: 100%;

    height: 52px;

    padding:
        0 48px;

    border: none;

    outline: none;

    border-radius: 10px;

    background: #eeeeee;

    color: #333;

    font-family: inherit;

    font-size: 14px;

    font-weight: 500;

    transition:
        .25s ease;

}


.niv-input-box input::placeholder {

    color: #999;

    font-weight: 400;

}


.niv-input-box input:focus {

    background: #f5f7ff;

    box-shadow:
        0 0 0 2px
        rgba(116,148,236,.30);

}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.niv-password-toggle {

    position: absolute;

    right: 14px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    background: transparent;

    color: #777;

    cursor: pointer;

    font-size: 15px;

}


.niv-password-toggle:hover {

    color: #7494ec;

}


/* =========================================================
   OPTIONS
   ========================================================= */

.niv-login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin:
        4px 0 25px;

}


.niv-remember {

    display: flex;

    align-items: center;

    gap: 7px;

    cursor: pointer;

    font-size: 12px;

    color: #777;

}


.niv-remember input {

    width: 15px;
    height: 15px;

    accent-color: #7494ec;

    cursor: pointer;

}


.niv-forgot-password {

    color: #7494ec;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

}


.niv-forgot-password:hover {

    text-decoration: underline;

}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.niv-login-button {

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #7494ec,
            #5878d8
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(88,120,216,.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.niv-login-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(88,120,216,.32);

}


.niv-login-button:active {

    transform:
        translateY(0);

}


/* =========================================================
   NO REGISTER MESSAGE
   ========================================================= */

.niv-no-register {

    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: 8px;

    margin-top: 22px;

    color: #999;

    font-size: 11px;

    line-height: 1.5;

    text-align: center;

}


.niv-no-register i {

    color: #7494ec;

    margin-top: 2px;

}


/* =========================================================
   FOOTER
   ========================================================= */

.niv-login-footer {

    margin-top: 28px;

    text-align: center;

    color: #aaa;

    font-size: 11px;

}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 800px) {

    .niv-login-page {

        padding: 20px;

    }


    .niv-login-container {

        width: 720px;

    }


    .niv-login-form-area {

        padding:
            40px 35px;

    }


    .niv-brand-content h1 {

        font-size: 30px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 650px) {

    body {

        background:
            linear-gradient(
                135deg,
                #e2e2e2,
                #c9d6ff
            );

    }


    .niv-login-page {

        min-height: 100vh;

        padding:
            15px;

        align-items: center;

    }


    .niv-login-container {

        width: 100%;

        max-width: 480px;

        min-height: auto;

        display: block;

        border-radius: 22px;

    }


    /* Hide desktop brand panel */

    .niv-login-brand {

        display: none;

    }


    /* Login area */

    .niv-login-form-area {

        width: 100%;

        min-height: auto;

        padding:
            32px 24px 28px;

        display: block;

    }


    .niv-login-form-inner {

        width: 100%;

        max-width: none;

    }


    .niv-mobile-logo {

        display: flex;

    }


    .niv-login-form-inner h2 {

        font-size: 30px;

        text-align: center;

    }


    .niv-login-subtitle {

        text-align: center;

        font-size: 12.5px;

        margin-bottom: 25px;

    }


    .niv-input-group {

        margin-bottom: 17px;

    }


    .niv-input-box input {

        height: 52px;

        font-size: 14px;

    }


    .niv-login-options {

        margin-bottom: 22px;

    }


    .niv-login-button {

        min-height: 52px;

    }


    .niv-no-register {

        max-width: 300px;

        margin-left: auto;
        margin-right: auto;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 400px) {

    .niv-login-page {

        padding:
            10px;

    }


    .niv-login-container {

        border-radius: 18px;

    }


    .niv-login-form-area {

        padding:
            25px 18px 22px;

    }


    .niv-mobile-logo {

        margin-bottom: 16px;

    }


    .niv-mobile-logo-icon {

        width: 38px;
        height: 38px;

        font-size: 20px;

    }


    .niv-mobile-logo span {

        font-size: 21px;

    }


    .niv-login-form-inner h2 {

        font-size: 27px;

    }


    .niv-login-subtitle {

        font-size: 12px;

    }


    .niv-login-options {

        align-items: flex-start;

    }


    .niv-remember span,
    .niv-forgot-password {

        font-size: 11px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 340px) {

    .niv-login-page {

        padding: 6px;

    }


    .niv-login-form-area {

        padding:
            22px 15px;

    }


    .niv-login-options {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }


    .niv-login-form-inner h2 {

        font-size: 25px;

    }

}