﻿
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Times New Roman';
}

/* ==================================================
   BODY BACKGROUND
================================================== */
    .bg_login {
        background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/Login_bg - Copy.png') no-repeat center center;
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .bg_login1 {
        background:   url('../images/bg_pad_02.png') no-repeat center center;
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        overflow-x: hidden;
    }

/* ==================================================
   REMOVE BOOTSTRAP DEFAULT SPACING
================================================== */
.container-fluid,
.container,
.row {
    margin: 0;
    padding: 0;
}

.container-fluid {
    width: 100%;
    min-height: 100vh;
}

/* ==================================================
   HEADER BAR
================================================== */
.title-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(to right, #4d8ed1, #6aa6df);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
/* Large desktop screens */

@media (min-width: 1600px) {
    .title-login {
        height: 55px;
    }
}

    /* remove table layout issue */
    .title-login table,
    .title-login tbody,
    .title-login tr {
        width: auto !important;
    }

    .title-login td {
        border: none;
        vertical-align: middle;
    }

    /* logo */
    /*.title-login img {
        width: 34px !important;
        height: 34px !important;
        object-fit: contain;
        margin-right: 10px;
    }
*/
    /* heading */
    .title-login .heading {
        color: #ffffff;
        font-size: 16px;
        font-weight: bold;
        white-space: nowrap;
    }
/* Default */
.title-login img {
    max-width: 120px;
    min-width: 80px;
    width: 100%;
    height: auto;
}

.title-login .heading {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}
.title-login img {
    max-width: 45px !important;
    min-width: 45px !important;
}

/* Bigger desktop screens */
@media (min-width: 1600px) {

    .title-login {
        height: 55px;
    }

        .title-login img {
            max-width: 55px !important;
            min-width: 55px !important;
        }

        .title-login .heading {
            font-size: 30px !important;
            font-weight: 800;
        }

        .title-login td:first-child {
            padding-right: 16px !important;
        }
}
/* ==================================================
   CENTER LOGIN SECTION
================================================== */
/*.common {
    min-height: 100vh;
}*/

.loginmain {
    min-height: 100vh;
    width: 100%;
    display: flex !important;
    justify-content: center !important; /* horizontal center */
    align-items: center !important; /* vertical center */
    padding-top: 0 !important; /* remove top spacing */
    padding-bottom: 0 !important;
}

/* ==================================================
   LOGIN BOX CENTER
================================================== */
.common.loginbox {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}


/* hide left/right empty columns */
.loginbox .col-1,
.loginbox .col-sm-1,
.loginbox .col-md-1,
.loginbox .col-lg-1 {
    display: none;
}

/* main form width */
.loginbox .col-10,
.loginbox .col-sm-10,
.loginbox .col-md-10,
.loginbox .col-lg-10 {
    flex: 0 0 330px;
    max-width: 330px;
    width: 330px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .loginmain {
        padding-top: 0 !important;
        align-items: center !important;
    }

    .loginbox .col-10,
    .loginbox .col-sm-10,
    .loginbox .col-md-10,
    .loginbox .col-lg-10 {
        width: 92% !important;
        max-width: 330px !important;
        flex: 0 0 92% !important;
        transform: none !important;
    }
}

/* transparent containers */
.transparent-wrap,
.inner-from-div,
.loginbox {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==================================================
   HIDE LEFT LABEL COLUMN
================================================== */
.login-left,
.usertype,
#divPan label,
#divAdhar label {
    display: none !important;
}

/* right side full width */
.login-right,
.col-8.login-right {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
}

/* ==================================================
   INPUTS
================================================== */
.form-control,
.form-select {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 3px;
    box-shadow: none;
    padding: 0 14px;
    font-size: 15px;
    margin-bottom: 14px;
}

/* password eye */
.password-eye {
    position: absolute;
    top: 9px;
    right: 10px;
    cursor: pointer;
}

/* ==================================================
   LOGIN BUTTON
================================================== */
#btnLogin,
.btn-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    /* richer blue */
    background: linear-gradient(135deg, #8fc2ff 0%, #3f88eb 50%, #8fc2ff 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 10px 24px rgba(31,111,255,0.34), inset 0 1px 1px rgba(255,255,255,0.20);
    transition: background 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

    /* hover */
    #btnLogin:hover,
    .btn-submit:hover {
        background: linear-gradient(135deg, #2b79ff, #4a96ff, #6bb5ff);
        box-shadow: 0 14px 28px rgba(31,111,255,0.42), inset 0 1px 1px rgba(255,255,255,0.22);
        filter: brightness(1.02);
    }

    /* click */
    #btnLogin:active,
    .btn-submit:active {
        filter: brightness(0.95);
        box-shadow: 0 6px 14px rgba(31,111,255,0.24);
    }

    /* focus */
    #btnLogin:focus,
    .btn-submit:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(118,188,255,0.22), 0 10px 24px rgba(31,111,255,0.34);
    }

    /* focus */
    #btnLogin:focus,
    .btn-submit:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(118,188,255,0.22), 0 10px 24px rgba(61,139,255,0.28);
    }
/* ==================================================
   FORGOT PASSWORD
================================================== */
.mb-2.text-end {
    text-align: center !important;
}

.mb-2.text-end {
    text-align: center !important;
    margin-top: 16px;
}

/* elegant warm accent style */
.forgot-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd36a, #ffb347, #ff9f43);
    border: none;
    color: #1f2937;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 179, 71, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: all 0.28s ease;
}

    /* icon */
    .forgot-link::before {
        content: "🔑";
        font-size: 16px;
    }

    /* hover */
    .forgot-link:hover {
        background: linear-gradient(135deg, #ffe08a, #ffc15a, #ffab52);
        box-shadow: 0 14px 28px rgba(255, 179, 71, 0.45), inset 0 1px 0 rgba(255,255,255,0.38);
        color: #111827;
    }

    /* active */
    .forgot-link:active {
        filter: brightness(0.96);
    }

    /* focus */
    .forgot-link:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(255, 211, 106, 0.28), 0 14px 28px rgba(255, 179, 71, 0.45);
    }

/* ==================================================
   USER SWITCH SLIDER
================================================== */
/* ==================================================
   MODERN GLASSMORPHIC USER SWITCH SLIDER
================================================== */

.user-switch {
    margin-bottom: 16px;
}

.switch-track {
    position: relative;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
    padding: 4px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* moving active slider */
/* darker modern blue gradient */

.switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: linear-gradient(135deg, #0a2f78, #1147a8, #1b5fc9);
    box-shadow: 0 8px 18px rgba(17,71,168,0.38), inset 0 1px 2px rgba(255,255,255,0.22);
    transition: all 0.32s cubic-bezier(.4,0,.2,1);
}

/* options */
.switch-option {
    width: 50%;
    z-index: 2;
    text-align: center;
    line-height: 40px;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}

    /* active text */
    .switch-option.active {
        color: #ffffff;
    }

    /* hover */
    .switch-option:not(.active):hover {
        color: #1e3a8a;
    }

/* mobile */
@media (max-width: 768px) {
    .switch-track {
        height: 44px;
    }

    .switch-option {
        line-height: 36px;
        font-size: 13px;
    }
}
/* ==================================================
   MOBILE
================================================== */
@media (max-width: 768px) {

    .title-login {
        height: 54px;
        padding: 0 10px;
    }

        .title-login .heading {
            font-size: 13px;
        }

        .title-login img {
            width: 28px !important;
            height: 28px !important;
        }

    .loginmain {
        padding-top: 54px;
    }

    .loginbox .col-10,
    .loginbox .col-sm-10,
    .loginbox .col-md-10,
    .loginbox .col-lg-10 {
        width: 92%;
        max-width: 330px;
        flex: 0 0 92%;
    }
}

/* ==================================================
   FIX SLIGHT LEFT ALIGNMENT
   Bootstrap row/container causing offset
================================================== */

/* remove bootstrap row shifting */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center !important;
}

/* full wrapper center */
.container,
.container-fluid,
.common,
.loginwrap,
.loginmain {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* exact centered form block */
.loginbox {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
}

    /* shift login body slightly to right */

    .loginbox > .col-10,
    .loginbox > .col-sm-10,
    .loginbox > .col-md-10,
    .loginbox > .col-lg-10 {
        flex: 0 0 330px !important;
        max-width: 330px !important;
        width: 330px !important;
        margin: 0 auto !important;
        transform: translateX(22px) !important; /* remove right shift */
    }

    /* hide side columns causing push */
    .loginbox > .col-1,
    .loginbox > .col-sm-1,
    .loginbox > .col-md-1,
    .loginbox > .col-lg-1 {
        display: none !important;
    }

/* left icon inside input */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
}

/* left padding for icon */
.ps-5 {
    padding-left: 52px !important;
}

/* eye right side */
.password-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    /* eye image */
    .password-eye img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }
/* ==================================================
   OTP MODAL - FINAL MODERN PREMIUM DESIGN
================================================== */

/* =========================================
   BACKDROP
========================================= */
.modal-backdrop.show {
    background: rgba(8, 18, 38, 0.68);
    backdrop-filter: blur(6px);
}

/* =========================================
   MODAL POSITION
========================================= */
#PopUpmodalOtp .modal-dialog {
    max-width: 470px;
    padding: 14px;
}

/* =========================================
   MODAL CARD
========================================= */
#PopUpmodalOtp .modal-content {
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    box-shadow: 0 30px 60px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.9);
    padding: 28px;
    overflow: hidden;
}

/* =========================================
   CLOSE BUTTON
========================================= */
#PopUpmodalOtp .btn-close {
    opacity: 0.7;
    transition: all 0.25s ease;
}

    #PopUpmodalOtp .btn-close:hover {
        opacity: 1;
        transform: rotate(90deg) scale(1.05);
    }

/* =========================================
   TITLE
========================================= */
#PopUpmodalOtp h4 {
    font-size: 26px;
    font-weight: 800;
    color: #1147a8 !important;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

/* subtitle */
.otp-help-text {
    font-size: 14px;
    color: #64748b !important;
    line-height: 1.55;
    max-width: 320px;
    margin: 0 auto;
}

/* =========================================
   OTP BOXES
========================================= */
.otp-container {
    padding: 12px 0 6px;
    gap: 10px !important;
    flex-wrap: wrap;
}

.otp-box {
    width: 52px;
    height: 58px;
    border: 1px solid #d8e4ff;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: black;
    box-shadow: 0 8px 20px rgba(17,71,168,0.08);
    transition: all 0.22s ease;
}

    .otp-box:focus {
        outline: none;
        border-color: #5aa6ff;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(90,166,255,0.14), 0 14px 28px rgba(17,71,168,0.14);
        transform: translateY(-2px);
    }

/* =========================================
   BUTTON BASE
========================================= */
.otp-btn,
.btn-otp-primary,
.btn-otp-outline {
    min-width: 130px;
    height: 46px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    cursor: pointer;
}

    /* =========================================
   SEND OTP (Blue)
========================================= */
    #sendOtpLink,
    .otp-btn.primary {
        border: none;
        color: #fff;
        background: linear-gradient(135deg, #1f6fff, #377fff, #5aa6ff);
        box-shadow: 0 12px 24px rgba(31,111,255,0.22);
    }

        #sendOtpLink:hover,
        .otp-btn.primary:hover {
            filter: brightness(1.04);
            box-shadow: 0 16px 28px rgba(31,111,255,0.28);
        }

    /* =========================================
   RESEND OTP (Purple)
========================================= */
    #resendOtpLink,
    .otp-btn.danger {
        border: none;
        color: #fff;
        background: linear-gradient(135deg, #7b61ff, #6749f2, #8a73ff);
        box-shadow: 0 12px 24px rgba(103,73,242,0.20);
    }

        #resendOtpLink:hover,
        .otp-btn.danger:hover {
            filter: brightness(1.04);
            box-shadow: 0 16px 28px rgba(103,73,242,0.26);
        }

/* =========================================
   VERIFY (Green)
========================================= */
#loginOtp,
.btn-otp-primary {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #18b96e, #14a864, #26d181);
    box-shadow: 0 12px 24px rgba(24,185,110,0.22);
}

    #loginOtp:hover,
    .btn-otp-primary:hover {
        filter: brightness(1.04);
        box-shadow: 0 16px 28px rgba(24,185,110,0.28);
    }

/* =========================================
   CANCEL
========================================= */
.btn-otp-outline {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbe3ef;
}

    .btn-otp-outline:hover {
        background: #fff3f4;
        color: #dc3545;
        border-color: #f5bcc3;
        box-shadow: 0 12px 22px rgba(220,53,69,0.08);
    }

    /* click effect */
    .otp-btn:active,
    .btn-otp-primary:active,
    .btn-otp-outline:active {
        transform: scale(0.97);
    }

/* =========================================
   TIMER / MESSAGE
========================================= */
#otpTimer {
    font-size: 14px;
    font-weight: 700;
    color: #1147a8 !important;
}

#otpmsg {
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
   LOADER TEXT
========================================= */
#otpLoader .fw-semibold {
    color: #1147a8;
    margin-top: 10px;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */
@media (max-width: 576px) {

    #PopUpmodalOtp .modal-content {
        padding: 22px;
        border-radius: 22px;
    }

    #PopUpmodalOtp h4 {
        font-size: 22px;
    }

    .otp-box {
        width: 46px;
        height: 52px;
        font-size: 20px;
    }

    .otp-btn,
    .btn-otp-primary,
    .btn-otp-outline {
        min-width: 112px;
        height: 44px;
        font-size: 14px;
    }
}

/* =========================================
   MOBILE HEADER ONLY
   Wrap header text, keep body untouched
========================================= */
@media (max-width: 768px) {

    .title-login {
        height: auto !important;
        min-height: 58px !important;
        padding: 6px 10px !important;
        overflow: visible !important;
    }

        .title-login table,
        .title-login tbody,
        .title-login tr {
            width: auto !important;
        }

        .title-login td {
            border: none;
            vertical-align: middle !important;
            padding: 0 !important;
        }

        /* logo visible */
        .title-login img {
            width: 26px !important;
            height: 26px !important;
            min-width: 26px !important;
            display: inline-block !important;
            object-fit: contain;
            margin-right: 6px !important;
        }

        /* text wraps only */
        .title-login .heading {
            font-size: 11px !important;
            line-height: 1.2 !important;
            white-space: normal !important;
            word-break: break-word !important;
            overflow: visible !important;
            text-align: center;
            max-width: 220px;
            display: inline-block;
        }
}
@media (max-width: 768px) {
    .loginbox > .col-10, .loginbox > .col-sm-10, .loginbox > .col-md-10, .loginbox > .col-lg-10 {
        transform: translateX(-14px) !important; /* adjust value if needed */
    }
}

@media (max-width: 768px) {

    .title-login {
        width: 100%;
        padding: 0 10px;
    }

        .title-login table {
            width: 100% !important;
            table-layout: auto;
        }

        .title-login td:last-child {
            width: 100%;
        }

        .title-login .heading {
            display: block;
            width: 100%;
            max-width: 100% !important;
            font-size: 16px !important;
            line-height: 1.35 !important;
            white-space: normal !important;
            word-break: break-word !important;
            overflow: visible !important;
            text-align: left !important;
            padding-right: 8px;
        }

        .title-login img {
            max-width: 90px !important;
            min-width: 70px !important;
        }
}

@media (max-width: 768px) {

    .loginbox .col-10,
    .loginbox .col-sm-10,
    .loginbox .col-md-10,
    .loginbox .col-lg-10 {
        width: 92% !important;
        max-width: 330px !important;
        flex: 0 0 92% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: translateX(0) !important;
        left: 0 !important;
        right: 0 !important;
    }

    .login-wrap {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Replace ONLY these sections in your current CSS */

/* ==================================================
   HEADER BAR (TOP BLUE SECTION)
================================================== */
.title-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(to right, #4d8ed1, #6aa6df);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

@media (min-width: 1600px) {
    .title-login {
        height: 55px;
    }
}

/* ==================================================
   BODY IMAGE BELOW HEADER
================================================== */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    /* blue header top space + image below */
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/Login_bg - Copy.png') no-repeat center top 44px;
    background-size: cover;
    background-attachment: fixed;
}

/* for large screens */
@media (min-width: 1600px) {
    body {
        background-position: center top 45px;
    }
}


/* ==================================================
   MOBILE
================================================== */
@media (max-width: 768px) {
    body {
        background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                    url('../images/Login_bg - Copy.png') no-repeat center top 48px;
        background-size: cover;
        background-attachment: scroll;
    }
}
/* Keep logo circular by compressing image less vertically */
body {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/Login_bg - Copy.png') no-repeat center top 34px;
    /* wider width + auto height prevents oval stretch */
    background-size: 100% auto;
    background-attachment: fixed;
}

/* If screen is tall, fill height gently */
@media (min-height: 700px) {
    body {
        background-size: 100% 92%;
    }
}

/* Large screens */
@media (min-width: 1600px) {
    body {
        background-position: center top 45px;
        background-size: 100% auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/Login_bg - Copy.png') no-repeat center top 48px;
        background-size: cover;
        background-attachment: scroll;
    }
}

