﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-position: center unset;
    min-height: 100vh;
    background-image: url('../img/login_background.png');
    display: flex;
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-family: 'Segoe UI',sans-serif;
}

/* MAIN CARD */
.login-container {
    width: 100%;
    max-width: 990px; /* was 1100px */
    min-height: 585px; /* was 650px */
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0);
}

/* LEFT SIDE */
.login-left {
    width: 50%;
    background: antiquewhite;
    color: #fff;
    padding: 45px 63px; /* was 50px 70px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    order: 1;
}

/* RIGHT SIDE */
.login-right {
    width: 50%;
    background: rgb(255 255 255 / 45%);
    display: flex;
    justify-content: center;
    padding: 54px;
    padding-bottom: 30PX;
    flex: 1;
    order: 1;
}

.main-title {
    display: block;
    background-image: linear-gradient(357deg, #ff4e00, #603a02);
    /*background-clip: text;*/
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    font-size: 18px; /* was 20px */
    font-weight: 700;
    margin-bottom: 9px; /* was 10px */
    text-align: center;
    margin-bottom: 20px; /* was 22px */
}

.sub-title {
    font-weight: 800;
    color: #6F0F6B;
    font-size: 16px; /* was 18px */
    text-align: center;
    margin-bottom: 22px; /* was 24px */
}

.login-right h2 {
    font-size: 28px; /* was 31px */
    margin-bottom: 14px; /* was 15px */
}

.login-right p {
    font-size: 21px; /* was 24px */
}


/* LOGO */
.logo-section2 {
    text-align: center;
    margin-bottom: 18px; /* was 20px */
}

.logo-section {
    text-align: center;
    margin-bottom: 4px;
    margin-top: -27px; /* was -30px */
}

.brand_logo2 {
    width: 63px; /* was 70px */
}

.brand_logo {
    width: 90px; /* was 100px */
}
/* TITLES */

/* FORM */
#form1 {
    display: flex;
    flex-direction: column;
}

/* FORM GROUP */
/* FLOATING INPUT */
.form-group {
    position: relative;
    margin-bottom: 18px; /* was 20px */
}

/* INPUT */
.form-control {
    width: 100%;
    height: 42px; /* was 46px */
    margin: 0 auto; /* Centers the input */
    background: rgb(239 80 0 / 7%);
    border: 1px solid #d8b89c;
    border-radius: 6px;
    color: black;
    font-size: 16px; /* was 18px */
    padding: 14px 12px 5px; /* was 16px 14px 6px */
    outline: none;
    transition: 0.3s;
}

    /* INPUT FOCUS */
    .form-control:focus {
        border-color: #ff2800;
        background: rgba(255,255,255,0.08);
        box-shadow: 0 0 0 1px rgba(255,255,255,0.20), 0 0 10px rgba(255,255,255,0.08);
    }

    /* HIDE ORIGINAL PLACEHOLDER */
    .form-control::placeholder {
        color: transparent;
    }

/* FLOATING LABEL */
.form-group label {
    position: absolute;
    left: clamp(14px, 4vw, 18px);
    top: 12px; /* was 13px */
    color: rgb(0 0 0 / 75%);
    font-size: clamp(11px, 2.8vw, 12px);
    pointer-events: none;
    transition: 0.25s ease;
    background: #ffffff00;
    white-space: nowrap;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ANIMATION */
.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: -7px; /* was -8px */
    left: clamp(14px, 4vw, 18px);
    font-size: clamp(10px, 2.5vw, 11px);
    padding: 3px clamp(10px, 3vw, 18px);
    color: white;
    background: #f75300;
    border-radius: 20px;
    max-width: calc(100% - 20px);
}

/* REFRESH BUTTON */
.captcha-wrapper {
    width: 100%;
    padding: 9px; /* was 10px */
    max-width: 380px; /* was 420px */
    margin: 18px auto; /* was 20px auto */
    display: flex;
    align-items: center;
    background: #f7e5d3;
    border: 1px solid #d9b18b;
    border-radius: 10px;
    overflow: hidden;
}

.captcha-question {
    min-width: 81px; /* was 90px */
    text-align: center;
    font-size: 21px; /* was 24px */
    font-weight: 700;
    color: #602603;
    /* background: #ff8a00;*/
    padding: 11px; /* was 12px */
}

.captcha-answer {
    flex: 1;
}

.form-control2 {
    width: 70%;
    height: 42px; /* was 46px */
    margin: 0 auto;
    display: block;
    background: rgb(239 80 0 / 7%);
    border: 1px solid #d8b89c;
    border-radius: 6px;
    color: black;
    font-size: 16px; /* was 18px */
    padding: 14px 12px 5px; /* was 16px 14px 6px */
    outline: none;
    transition: 0.3s;
}

    .form-control2:focus {
        border-color: #ff2800;
        background: rgba(255,255,255,0.08);
        box-shadow: 0 0 0 1px rgba(255,255,255,0.20), 0 0 10px rgba(255,255,255,0.08);
    }

    .form-control2::placeholder {
        color: transparent;
    }

.form-group2 {
    position: relative;
}

    .form-group2 label {
        position: absolute;
        left: clamp(38px, 12vw, 45px);
        top: 12px; /* was 13px */
        color: rgb(0 0 0 / 75%);
        font-size: clamp(11px, 2.8vw, 12px);
        pointer-events: none;
        transition: 0.25s ease;
        background: transparent;
        white-space: nowrap;
    }

.form-control2:focus + label,
.form-control2:not(:placeholder-shown) + label {
    top: -7px; /* was -8px */
    left: clamp(40px, 12vw, 48px);
    font-size: clamp(10px, 2.5vw, 11px);
    padding: 3px clamp(10px, 3vw, 18px);
    color: white;
    background: #f75300;
    border-radius: 20px;
}


#lnk_Refresh {
    color: #b54f00;
    transition: 0.3s;
    font-size: x-large; /* was xx-large */
}

    #lnk_Refresh:hover {
        transform: rotate(180deg);
    }

/* OTP */
#div_otp {
    margin-bottom: 16px; /* was 18px */
}

/* BUTTON */
.login-btn,
.login-btn-back {
    width: 70%;
    height: 40px; /* was 44px */
    margin: 0 auto;
    border: none;
    margin-top: 13px; /* was 14px */
    border-radius: 10px;
    color: #fff;
    font-size: 13px; /* was 14px */
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* LOGIN BUTTON */
.login-btn {
    background: linear-gradient(45deg, #b54f00, #b54f00);
}

/* BACK BUTTON */
.login-btn-back {
    background: linear-gradient(45deg, #767272, #7e7676);
}

    /* BUTTON HOVER */
    .login-btn:hover,
    .login-btn-back:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(255,0,140,0.25);
    }

/* FOOTER */
.footer-links {
    color: black;
    font-size: 13px; /* was 14px */
    line-height: 18px; /* was 20px */
    margin-top: 18px; /* was 20px */
    text-align: center
}

    .footer-links a {
        color: #6F0F6B;
        text-decoration: none;
        font-weight: 600;
        text-align: center
        /* margin-left: 4px;*/
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.alert-box {
    position: relative;
    display: flex;
    align-items: center;
    display: block;
    gap: 13px; /* was 15px */
    padding: 16px 18px 16px 54px; /* was 18px 20px 18px 60px */
    margin: 18px 0; /* was 20px 0 */
    border: 1px solid #d8b89c;
    border-radius: 10px;
    background: antiquewhite;
    color: #5c2706;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    FONT-SIZE: 11px; /* was 12px */
}

    /* Circle icon */
    .alert-box::before {
        content: "i";
        position: absolute;
        left: 16px; /* was 18px */
        top: 50%;
        transform: translateY(-50%);
        width: 22px; /* was 24px */
        height: 22px; /* was 24px */
        border: 2px solid #d97706;
        border-radius: 50%;
        color: #d97706;
        font-weight: bold;
        font-size: 14px; /* was 16px */
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        font-family: serif;
    }

    .alert-box strong {
        color: #444;
    }
/* MOBILE */
@media(max-width:768px) {

    .login-container {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-right {
        /* min-height: 156px;*/
        order: 1;
        font-size: 20px;
    }

    .login-left {
        padding: 35px;
        order: 2;
    }

    .main-title {
        font-size: 13px;
    }

    .sub-title {
        font-size: 12px;
    }

    .login-right h2 {
        font-size: 18px;
    }

    .alert-box {
        display: none !important;
    }

    .brand_logo {
        width: 70px;
    }

    .brand_logo2 {
        width: 60px;
    }

    .form-group label {
        left: 16px;
    }

    .form-control:focus + label,
    .form-control:not(:placeholder-shown) + label {
        left: 16px;
    }

    .form-group2 label {
        left: 40px;
    }

    .form-control2:focus + label,
    .form-control2:not(:placeholder-shown) + label2 {
        left: 42px;
    }
}

/* SMALL PHONES */
@media (max-width: 380px) {

    .login-left {
        padding: 22px;
    }

    .form-control,
    .form-control2 {
        font-size: 14px;
        height: 40px;
    }

    .form-group label,
    .form-group2 label {
        font-size: 10px;
    }

    .form-control:focus + label,
    .form-control:not(:placeholder-shown) + label,
    .form-control2:focus + label,
    .form-control2:not(:placeholder-shown) + label2 {
        font-size: 9px;
        padding: 2px 10px;
    }

    .login-btn,
    .login-btn-back {
        width: 90%;
    }

    .captcha-wrapper {
        flex-wrap: wrap;
    }

    .captcha-question {
        width: 100%;
        text-align: center;
    }
}
