﻿/* Coded with love by Mutiullah Samim */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    height: 100vh;
    overflow: hidden;
    font-family: sans-serif,sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../Login_Page_Img/Mainbackground.png");
    background-size: cover;
    background-position: center;
    position: relative;
    backdrop-filter: brightness(0.5);
}

    /* DARK OVERLAY */
    body::before {
        content: '';
        position: absolute;
        inset: 0;
    }

/* MAIN LOGIN CARD */
.login-wrapper {
    width: 100%;
    max-width: 380px;
    padding: 28px;
    position: relative;
    z-index: 1;
    border-radius: 24px;
    background: #fff2e6;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: center;
    box-shadow: 0 18px 35px rgba(0,0,0,0.28), 0 45px 30px rgba(0,0,0,0.15), inset 0 0 1px rgba(255,255,255,0.35);
    margin: auto;
}

    /* SHADOW BELOW CARD */
    .login-wrapper::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -28px;
        transform: translateX(-50%);
        width: 72%;
        height: 22px;
        background: rgba(0,0,0,0.28);
        filter: blur(18px);
        border-radius: 50%;
        z-index: -1;
    }

/* TITLE */
.login-title {
    display: block;
    color: black;
    letter-spacing: 1px;
}

    .login-title:first-child {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .login-title:last-of-type {
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 22px;
    }

/* FORM */
#form1 {
    display: flex;
    flex-direction: column;
}

/* FORM GROUP */
/* FLOATING INPUT */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

/* INPUT */
.form-control {
    width: 100%;
    height: 46px;
    background: rgba(255,255,255,0.05);
    border: 1px solid black;
    border-radius: 6px;
    color: black;
    font-size: 14px;
    padding: 16px 14px 6px;
    outline: none;
    transition: 0.3s;
}

    /* INPUT FOCUS */
    .form-control:focus {
        border-color: #ac7400;
        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: 14px;
    top: 13px;
    color: rgb(0 0 0 / 75%);
    font-size: 13px;
    pointer-events: none;
    transition: 0.25s ease;
    background: #ffffff00;
}

/* ANIMATION */
.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    padding: 3px 20px;
    color: white;
    background: #ac7400;
    border-radius: 20px;
}

/* CAPTCHA SECTION */
.captcha-box {
    margin-top: 2px;
    margin-bottom: 18px;
}

    .captcha-box div {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
    }

    /* CAPTCHA IMAGE */
    .captcha-box img {
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.05);
        padding: 2px;
    }

/* REFRESH BUTTON */
#lnk_Refresh {
    color: #00ff9d !important;
    transition: 0.3s;
}

    #lnk_Refresh:hover {
        transform: rotate(180deg);
    }

/* OTP */
#div_otp {
    margin-bottom: 18px;
}

/* BUTTON */
.login-btn,
.login-btn-back {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 40px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 4px;
}

/* LOGIN BUTTON */
.login-btn {
    background: linear-gradient(45deg, #ff7b00, #ff8600);
}

/* BACK BUTTON */
.login-btn-back {
    background: linear-gradient(45deg, #3d3a3a, #8c8c8c);
}

    /* 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: 12px;
    line-height: 20px;
    margin-top: 6px;
}

    .footer-links a {
        color: #0062e1;
        text-decoration: none;
        font-weight: 600;
        margin-left: 4px;
    }

        .footer-links a:hover, {
            text-decoration: underline;
        }

/* MOBILE */
@media (max-width: 480px) {

    .login-wrapper {
        width: 92%;
        padding: 24px;
    }

    .login-title:first-child {
        font-size: 22px;
    }
}
