* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Jost", sans-serif;
    background: linear-gradient(135deg,
            rgba(76, 79, 163, 1),
            rgba(27, 36, 92, 0.83)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat fixed;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 550px;
    background: #f5f7fa;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-close {
    position: absolute;
    right: 14px;
    top: 12px;
    text-decoration: none;
    color: #1f2437;
    font-size: 24px;
    line-height: 1;
}

.auth-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px 28px;
    padding: 20px 34px;
    background: #f5f7fa;
    flex-wrap: wrap;
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 0;
}

.auth-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    padding-right: 36px;
}

.auth-logos .brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.auth-logos .brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
    flex: 0 1 auto;
    min-width: 0;
}

.auth-logos .brand-logo-main {
    max-height: 42px;
    max-width: 150px;
}

.auth-logos .brand-logo-qualcomm {
    height: 18px;
    max-width: 110px;
}

.auth-logos .brand-logo-flag {
    max-height: 62px;
    max-width: 80px;
}

.auth-logos .org-logo {
    border-left: 1px solid #d5dae6;
    padding-left: 10px;
}

.auth-lang-form select {
    height: 38px;
    border: 1px solid #cfd6e4;
    border-radius: 22px;
    padding: 0 12px;
    background: #fff;
    min-width: 120px;
    font-size: 14px;
    color: #17304f;
}

.auth-tab {
    text-decoration: none;
    color: #333146;
    font-size: 18px;
    font-weight: 600;
}

.auth-tab.active {
    color: #ff5a2c;
}

.auth-body {
    padding: 40px;
    background: #fff;
    padding-top: 25px;
}

.field-label {
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333146;
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

.auth-input {
    background: transparent;
    border: 1px solid rgba(47, 47, 47, 0.3);
    height: 56px;
    padding: 10px 15px;
    width: 100%;
    color: #333146;
    font-size: 16px;
    font-weight: 400;
    border-radius: 0;
}

.auth-input::placeholder {
    color: #333146;
    font-size: 16px;
}

.auth-input:focus {
    border-color: #092ace;
    outline: none;
    box-shadow: none;
}

.helper-text {
    color: #333146;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 0;
}

.btn-forgot {
    display: block;
    margin: 20px auto 0 auto;
    height: 48px;
    line-height: 48px;
    padding: 0 28px;
    border-radius: 3px;
    background: #fcc305;
    ;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    border: 0;
    cursor: pointer;
}


/* .btn-forgot:hover {
    background: #092ace;
} */


#userloginError {
    display: block;
    margin-top: 10px;
}

#userloginError .err,
#userloginError .text-success {
    background-color: #fff;
    display: block;
    width: 100%;
    padding: 5px 10px;
}

#userloginError .err {
    color: red;
}

.bottom-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bottom-links a {
    color: #092ace;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .auth-shell {
        padding: 28px 18px;
    }

    .auth-card {
        max-width: 620px;
    }

    .auth-body {
        padding: 34px;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .auth-shell {
        padding: 16px;
    }

    .auth-top {
        padding: 18px 16px 0;
    }

    .auth-logos {
        padding-right: 28px;
    }

    .auth-logos .brand-logos {
        gap: 6px;
    }

    .auth-logos .brand-logo-main {
        max-height: 34px;
        max-width: 128px;
    }

    .auth-logos .brand-logo-qualcomm {
        height: 15px;
        max-width: 92px;
    }

    .auth-logos .brand-logo-flag {
        max-height: 30px;
        max-width: 48px;
    }

    .auth-tabs {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px 28px;
        padding: 20px 34px;
        background: #f5f7fa;
        flex-wrap: wrap;
    }

    .auth-tab {
        font-size: 15px;
        line-height: 1.2;
        min-width: 0;
    }

    .auth-lang-form {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
    }

    .auth-lang-form select {
        width: 100%;
        max-width: 230px;
    }

    .auth-body {
        padding: 24px 18px 28px;
    }

    .auth-input {
        height: 50px;
        font-size: 15px;
    }

    .btn-forgot {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .auth-shell {
        padding: 10px;
    }

    .auth-close {
        right: 10px;
        top: 8px;
    }

    .auth-top {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-logos {
        padding-right: 22px;
    }

    .auth-logos .brand-logo-main {
        max-height: 30px;
        max-width: 108px;
    }

    .auth-logos .brand-logo-qualcomm {
        height: 13px;
        max-width: 78px;
    }

    .auth-logos .brand-logo-flag {
        max-height: 26px;
        max-width: 42px;
    }

    .auth-tabs {
        padding: 14px 12px;
        gap: 10px 8px;
    }

    .auth-tab {
        font-size: 14px;
    }

    .auth-body {
        padding: 22px 14px 24px;
    }

    .bottom-links {
        gap: 10px;
    }
}