:root {
    --yellow: #eba819;
    --white: #fff;
    --black: #222;
    --body-font: 1rem;
    --heading-font: 2rem;
    --login-btn-bg: var(--yellow);
    --border-radius: .5rem;
    --primary: #6d3b85;
    --red: #f30f0f;
} 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: var(--body-font);
    line-height: 1.5;
    font-family: sans-serif;
    color: var(--black);
    background-image: url(../seimages/scert-loginbg.jpg);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    height: 100vh;
}

    body.scertlogin {
        position: relative;
        overflow: hidden;
    }

        body.scertlogin .imgelementBox img {
            width: 90%;
            margin-bottom: -13rem;
        }

main {
    padding: 5rem 7rem 5rem;
    height: 100vh;
    display: flex;
    align-items: center;
}


.login-container {
    margin-left: auto;
    width: 540px;
    padding: 3.5rem 2.5rem;
    border-radius: 2rem;
    border: 0.65rem solid #2fa67c;
    margin-right: 2.5rem;
    background: #fff;
}

.login-title {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2.2rem;
    font-weight: 400;
}

    .login-title::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 0.25rem;
        width: 80px;
        background: var(--yellow);
    }

.icon-input-control {
    position: relative;
}

.control-label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    background: var(--white);
    transition: .3s;
    padding: 0 0.3rem;
}

.form-control {
    margin-bottom: 1.5rem;
    height: 56px;
    border-radius: var(--border-radius);
    outline: none;
    border: 1px solid #ddd;
    width: 100%;
    padding: 0.5rem 1.5rem;
    font-size: var(--body-font);
    color: rgb(0 0 0 / 57%);
    transition: .3s;
}

    .form-control:focus {
        border: 1px solid var(--primary);
        box-shadow: none;
    }

        .form-control:focus + .control-label,
        .form-control:not(:placeholder-shown) + label,
        .form-control:focus + label {
            top: -0.7rem;
            color: var(--primary);
        }



.icon-input-control .icon-input-right {
    top: 0.6rem;
    right: 1.5rem;
    z-index: 2;
}

.icon-input-control .icon-input-right {
    position: absolute;
    font-size: 1.4rem;
    color: rgb(0 0 0 / 42%);
}

.icon-input-right:hover, .captcha-img .icon-input-right:hover {
    cursor: pointer;
    color: var(--login-btn-bg);
}
.imgelementBox img {
    margin-top: 6rem;
}
.captcha-inputs {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

    .captcha-inputs .icon-input-control {
        flex-grow: 1;
    }
.position-relative {
    position: relative;
}
.captcha-img {
    flex: 0 0 50%;
    /*margin-left: 1.5rem;*/
    /*for changing the captcha order*/
    margin-right: 1.5rem;
    display: flex;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    justify-content: space-between;
}

    .captcha-img .captcha-control {
        border-radius: 0;
        border: none;
        margin-bottom: 0;
        font-size: 1.2rem;
        color: #f00;
        padding: 0;
        display: flex;
        align-items: center;
        padding-left: 1rem;
    }

    .captcha-img .icon-input-right {
        padding: 0.8rem 1.2rem 0.6rem;
        border-left: 1px solid #ddd;
        font-size: 1.3rem;
        color: rgb(0 0 0 / 42%);
        position: relative;
        top: 0;
        right: 0;
    }

.captcha-control {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: 2px line-through var(--red);
}

.submitBtnBox .btn {
    min-width: 125px;
}

.mandatory {
    color: #f00;
}

.form-btns {
    display: flex;
    align-items: center;
}

.form-control {
    margin-bottom: 1.5rem;
    height: 56px;
    border-radius: var(--border-radius);
    outline: none;
    border: 1px solid #ddd;
    width: 100%;
    padding: 0.5rem 1.5rem;
    font-size: var(--body-font);
    color: rgb(0 0 0 / 57%);
    transition: .3s;
}

.login-btn {
    background: var(--login-btn-bg);
    border: none;
    outline: none;
    padding: 1.19rem;
    text-align: center;
    width: 36%;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    font-size: var(--body-font);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    cursor: pointer;
}

.otpBox {
    background: #ffccd1;
    border-radius: 2rem;
    text-align: center;
    padding: 0.2rem 1rem;
    color: #dc3545;
    font-weight: bold;
    margin: 0.5rem 0;
}

.login-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #f0f8ff30;
    transform: translateX(-105%);
    transition: .3s;
}

.login-btn:hover::before {
    transform: translateX(0%);
}

.forgot-link {
    color: inherit;
    margin-left: 2.5rem;
    text-decoration: none;
}

.registe-text {
    text-align: center;
}

.registe-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    padding-left: .5rem;
}

    .forgot-link:hover, .registe-link:hover {
        text-decoration: underline;
    }

.line-break {
    position: relative;
    text-align: center;
    margin: 3rem 0 1rem;
}

    .line-break span {
        position: relative;
        background: var(--white);
        z-index: 1;
    }

    .line-break::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0.7rem;
        width: 100%;
        height: 1px;
        background: #c7c7c7;
        z-index: 0;
    }

.text-muted {
    color: #949495;
}

.logo {
    position: absolute;
    top: 2rem;
}

footer {
    position: fixed;
    bottom: 5rem;
    color: #222;
}


.usmloginPortal .imgelementBox img {
    width: 63%;
    margin-left: 15.5rem;
}


.forgetpsw {
    display: flex;
    align-items: center;
}

.forgetpsw {
    margin-left: 2.5rem;
    text-decoration: none;
}

input::placeholder {
    color: transparent !important;
    opacity: 0;
    display: none;
}

.noticeBox {
    background: #f9f9f9;
    padding: 0.6rem;
    border-radius: 0.3rem;
    border: 1px solid #e1e1e1;
    margin-top: 0.8rem;
}

    .noticeBox span {
        font-weight: bold;
        color: #f00;
    }

@media (max-width:1920px) {
    .imgelementBox img {
        width: 80%;
    }
    }
@media (max-width:1600px) {
    body.scertlogin .imgelementBox img {
        width: 85%;
        margin-bottom: -14rem;
    }
}

    @media (max-width:1440px) {
        .imgelementBox img {
            width: 75%;
        }

        .login-container {
            width: 570px;
            padding: 3.5rem 2rem;
            margin-right: 0.5rem;
        }
    }

    @media (max-width:1366px) {
        .imgelementBox img {
            width: 65%;
            margin-top: 4rem;
            margin-left: 4rem;
        }

            body .scertlogin .imgelementBox img {
            margin-top: 0;
            margin-bottom: -10rem;
            width: 60%;
        }
        .rd p {
            margin-bottom: 1rem;
        }
        .login-title::before {
            
            bottom: -0.5rem;
        }
            .form-control {
            margin-bottom: 1rem;
            padding: 0.5rem 0.8rem;
        }

        .login-container {
            padding: 1.2rem;
            width: 480px;

        }

        .login-title {
            font-size: 1.5rem;
            margin-bottom: 1.4rem;
        }

        main {
            padding: 3rem;
        }

        .sign-in-bg p {
            margin-bottom: 0.6rem;
        }

        .logo {
            top: 1rem;
        }

        .form-btns {
            margin-top: 1rem;
        }

        .line-break {
            margin: 1.5rem 0 1rem;
        }

        body.usmloginPortal {
            background-position: 42% 30%;
        }

        .login-btn {
            width: 45%;
            padding: 0.8rem 1.2rem;
        }

        .usmloginPortal .imgelementBox img {
            width: 58%;
            margin-top: 0rem;
            margin-left: 9.5rem;
        }

        .usmloginPortal .login-container {
            width: 460px;
            margin-right: 0.5rem;
        }

        .usmloginPortal .captcha-img {
            flex: 0 0 55%;
        }

        .control-label {
            top: 0.6rem;
        }

        .form-control {
            height: 45px;
        }

        .captcha-img .icon-input-right {
            padding: 0.6rem 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    @media (max-width:1280px) {
        .captcha-img .captcha-control {
            font-size: 1.2rem;
        }

        body.scertlogin .imgelementBox img {
            margin-top: 0;
            margin-bottom: -10.3rem;
            width: 62%;
        }
    }

    @media (max-width:1152px) {
        .login-container {
            padding: 1.6rem;
            width: 560px;
        }

        .captcha-img .captcha-control {
            font-size: 1rem;
        }

        body.scertlogin .imgelementBox img {
            width: 91%;
            margin-left: 2rem;
        }
    }

    @media (max-width:1024px) {
        .usmloginPortal .login-container {
            width: 650px;
            margin-right: 0.5rem;
            padding: 1rem;
        }

        .imgelementBox img {
            width: 80%;
            margin-left: 0rem;
        }

        .login-container {
            width: 665px;
        }
    }

    @media (max-width:768px) {
        .imgelementBox {
            display: none;
        }

        main {
            display: block;
            padding: 2rem 0;
        }

        .login-container {
            width: 80%;
            margin: 0 auto;
        }

        .logo {
            position: relative;
            top: 0;
        }

        body.usmloginPortal {
            background-position: 20% 86%;
        }

        .imgelementBox {
            display: none;
        }

        main {
            display: block;
            padding: 2rem 0;
        }

        .login-container {
            width: 80%;
        }

        .logo {
            position: relative;
            top: 0;
            width: 100%;
            text-align: center;
            margin: 0 auto;
            display: block;
            margin-bottom: 2rem;
        }

            .logo img {
                width: auto;
                margin: 0 auto;
            }

        .usmloginPortal .login-container {
            width: 100%;
        }
    }

    @media (max-width:576px) {
        .login-container {
            width: 100%;
        }
    }

    @media (max-width:425px) {
        .login-title {
            font-size: 1.3rem;
            margin-bottom: 2rem;
        }

        .login-container {
            padding: 0.7rem;
            border-radius: 0.5rem;
            border: 0.25rem solid #2fa67c;
        }

        .form-control {
            height: 44px;
        }

        .control-label {
            left: 1rem;
            top: 0.6rem;
        }

        .captcha-inputs {
            display: block;
        }

       /* .captcha-img {
            margin-left: 0;
        }*/
        .captcha-img {
            margin-right: 0;
            margin-bottom: 1rem;
        }

            .captcha-img .icon-input-right {
                padding: 0.2rem 1.2rem 0.4rem;
            }

        .form-btns {
            display: block;
        }

        .login-btn {
            width: 100%;
            margin-bottom: 1rem;
            padding: 0.99rem 1.19rem;
        }

        .forgot-link {
            margin-left: 0;
            text-decoration: none;
            display: block;
            text-align: center;
        }

        .line-break {
            margin: 1rem 0 1rem;
        }

        .login-title::before {
            bottom: -0.3rem;
            height: 0.15rem;
            width: 60px;
        }

        main {
            padding: 1rem;
        }
    }
