/* =========================================================
   DNA DATA & ANALYTICS LOGIN PAGE
   ========================================================= */


/* =========================================================
   GLOBAL RESET FOR LOGIN PAGE
   ========================================================= */

html,
body {
    margin: 0 !important;
    padding: 0 !important;

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

    overflow-x: hidden;
}


/* =========================================================
   FULL SCREEN LOGIN BACKGROUND
   ========================================================= */

.login-page {

    /*
     * IMPORTANT:
     * Fixed positioning makes the login page escape
     * the width limitation from x-guest-layout.
     */

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    min-height: 100vh;

    display: flex;

    align-items: center;

    /*
     * Put login card in the EMPTY LEFT area.
     */

    justify-content: flex-start;

    padding: 30px 0 30px 8%;

    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 999;

    /*
     * YOUR BACKGROUND IMAGE
     */

    background-image:
        url('/images/login-background.png');

    background-size: cover;

    /*
     * Keep the colorful artwork on the RIGHT.
     */

    background-position: center center;

    background-repeat: no-repeat;

}


/* =========================================================
   BACKGROUND SOFT OVERLAY
   ========================================================= */

.login-page::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 0;

    background:

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 35%,
            rgba(255, 255, 255, 0) 65%
        );

}


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

.login-card {

    position: relative;

    z-index: 2;

    width: 420px;

    max-width: calc(100vw - 40px);

    box-sizing: border-box;

    padding: 32px 36px 24px;

    background:

        rgba(255, 255, 255, 0.95);

    border:

        1px solid
        rgba(255, 255, 255, 0.90);

    border-radius: 20px;

    box-shadow:

        0 25px 70px
        rgba(0, 0, 0, 0.18),

        0 8px 25px
        rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

}


/* =========================================================
   HEADER
   ========================================================= */

.login-header {

    text-align: center;

    margin-bottom: 23px;

}


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

.login-logo {

    display: flex;

    justify-content: center;

    margin-bottom: 14px;

}


.logo-mark {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background:

        linear-gradient(
            145deg,
            #ffcc24,
            #ffb900
        );

    box-shadow:

        0 8px 20px
        rgba(255, 185, 0, 0.28);

}


.logo-mark span {

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

    font-size: 38px;

    line-height: 1;

    font-weight: 900;

    color: #ffffff;

    letter-spacing: -4px;

}


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

.login-title {

    margin: 0;

    color: #18243a;

    font-size: 26px;

    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -0.5px;

}


.login-subtitle {

    margin: 7px 0 0;

    color: #737b89;

    font-size: 12px;

    line-height: 1.5;

}


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

.login-form {

    width: 100%;

}


.form-group {

    margin-bottom: 15px;

}


.form-label {

    display: block;

    margin-bottom: 6px;

    color: #303b4e !important;

    font-size: 12px !important;

    font-weight: 650 !important;

}


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

.input-wrapper {

    position: relative;

    width: 100%;

}


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

.input-icon {

    position: absolute;

    left: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 16px;

    height: 16px;

    color: #9ba4b2;

    pointer-events: none;

    z-index: 3;

}


.input-icon svg {

    width: 100%;

    height: 100%;

}


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

.form-input {

    width: 100% !important;

    height: 44px;

    box-sizing: border-box;

    padding:
        9px
        43px
        9px
        40px !important;

    border:
        1px solid
        #d8dee8 !important;

    border-radius:
        9px !important;

    background:
        rgba(255, 255, 255, 0.90) !important;

    color:
        #202938 !important;

    font-size:
        12.5px !important;

    outline:
        none !important;

    box-shadow:
        none !important;

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

}


.form-input::placeholder {

    color:
        #a5acb8;

}


.form-input:hover {

    border-color:
        #bcc4cf !important;

}


.form-input:focus {

    border-color:
        #f4b800 !important;

    background:
        #ffffff !important;

    box-shadow:

        0 0 0 3px
        rgba(255, 188, 13, 0.14)
        !important;

}


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

.password-input {

    padding-right:
        43px !important;

}


.password-toggle {

    position: absolute;

    right: 8px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 7px;

    background:
        transparent;

    color:
        #9aa3af;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;

}


.password-toggle:hover {

    color:
        #374151;

    background:
        #f2f4f7;

}


.password-toggle svg {

    width: 16px;

    height: 16px;

}


/* =========================================================
   CAPTCHA
   ========================================================= */

.captcha-group {

    margin-top: 2px;

}


.captcha-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 6px;

}


.captcha-heading .form-label {

    margin-bottom: 0;

}


.captcha-hint {

    font-size:
        9px;

    color:
        #8b94a1;

}


/* =========================================================
   CAPTCHA IMAGE + REFRESH
   ========================================================= */

.captcha-box {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 7px;

}


.captcha-image-container {

    flex: 1;

    height: 53px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        #d9dee7;

    border-radius:
        8px;

    background:
        #f5f6f8;

}


.captcha-image {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.captcha-refresh {

    flex:
        0 0 43px;

    width: 43px;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        #d9dee7;

    border-radius:
        8px;

    background:
        #ffffff;

    color:
        #4b5563;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .2s ease,
        background .2s ease;

}


.captcha-refresh:hover {

    border-color:
        #ffbd00;

    background:
        #fffaf0;

}


.captcha-refresh:active {

    transform:
        scale(.95);

}


.captcha-refresh svg {

    width: 17px;

    height: 17px;

}


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

#captcha {

    letter-spacing:
        3px;

    font-weight:
        650;

}


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

.form-error {

    margin-top:
        4px !important;

    font-size:
        10px !important;

    color:
        #dc2626 !important;

}


.login-status {

    margin-bottom:
        15px;

}


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

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top:
        1px;

    margin-bottom:
        16px;

}


.remember-label {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        #6b7280;

    font-size:
        11px;

    cursor: pointer;

}


.remember-checkbox {

    width:
        14px;

    height:
        14px;

    cursor:
        pointer;

    accent-color:
        #ffbd00;

}


.forgot-link {

    color:
        #d89e00;

    font-size:
        11px;

    font-weight:
        650;

    text-decoration:
        none;

}


.forgot-link:hover {

    color:
        #a97800;

    text-decoration:
        underline;

}


/* =========================================================
   SIGN IN BUTTON
   ========================================================= */

.login-button {

    width:
        100%;

    height:
        45px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        9px;

    border:
        none;

    border-radius:
        9px;

    background:

        linear-gradient(
            135deg,
            #ffcc18,
            #ffb900
        );

    color:
        #252525;

    font-size:
        12.5px;

    font-weight:
        750;

    cursor:
        pointer;

    box-shadow:

        0 7px 18px
        rgba(255, 185, 0, .24);

    transition:

        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;

}


.login-button:hover {

    transform:
        translateY(-1px);

    box-shadow:

        0 10px 23px
        rgba(255, 185, 0, .31);

}


.login-button:active {

    transform:
        translateY(0);

}


.login-button:focus {

    outline:
        none;

    box-shadow:

        0 0 0 3px
        rgba(255, 188, 13, .18),

        0 8px 20px
        rgba(255, 185, 0, .25);

}


.login-arrow {

    width:
        16px;

    height:
        16px;

    transition:
        transform .2s ease;

}


.login-button:hover
.login-arrow {

    transform:
        translateX(3px);

}


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

.security-notice {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        5px;

    margin-top:
        15px;

    color:
        #929aa6;

    font-size:
        9px;

}


.security-notice svg {

    width:
        13px;

    height:
        13px;

}


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

.login-footer {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        6px;

    margin-top:
        13px;

    padding-top:
        12px;

    border-top:
        1px solid
        #edf0f3;

    color:
        #a2a9b4;

    font-size:
        8px;

    text-transform:
        uppercase;

    letter-spacing:
        .7px;

}


.footer-separator {

    color:
        #c9cdd3;

}


/* =========================================================
   LOADING
   ========================================================= */

.login-button.is-loading {

    pointer-events:
        none;

    opacity:
        .75;

}


.login-button.is-loading
.login-button-text::after {

    content:
        "";

    display:
        inline-block;

    width:
        11px;

    height:
        11px;

    margin-left:
        7px;

    vertical-align:
        -2px;

    border:
        2px solid
        rgba(0, 0, 0, .20);

    border-top-color:
        #222;

    border-radius:
        50%;

    animation:
        login-spinner .7s linear infinite;

}


.login-button.is-loading
.login-arrow {

    display:
        none;

}


@keyframes login-spinner {

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .login-page {

        padding-left:
            9%;

    }


    .login-card {

        width:
            430px;

    }

}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    .login-page {

        padding-left:
            6%;

    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .login-page {

        justify-content:
            center;

        padding:
            25px;

        background-position:
            center center;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .login-page {

        padding:
            20px 15px;

        background-position:
            center center;

    }


    .login-card {

        width:
            100%;

        max-width:
            410px;

        padding:
            28px 23px 21px;

        border-radius:
            17px;

    }


    .login-title {

        font-size:
            24px;

    }


    .login-subtitle {

        font-size:
            11px;

    }


    .logo-mark {

        width:
            55px;

        height:
            55px;

    }


    .logo-mark span {

        font-size:
            36px;

    }


    .captcha-hint {

        display:
            none;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .login-card {

        padding:
            25px 18px 20px;

    }


    .login-options {

        gap:
            10px;

    }

}