@font-face {
    font-family: 'Roboto';
    src: url('../font-awesome/fonts/roboto-regular-webfont.eot');
    src: url('../font-awesome/fonts/roboto-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../font-awesome/fonts/roboto-regular-webfont.woff2') format('woff2'),
         url('../font-awesome/fonts/roboto-regular-webfont.woff') format('woff'),
         url('../font-awesome/fonts/roboto-regular-webfont.ttf') format('truetype'),
         url('../font-awesome/fonts/roboto-regular-webfont.svg#robotoregular') format('svg');
    font-style: normal;
}

/* ============================================
   MODERN LOGIN PAGE DESIGN
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: normal;
    text-align: center;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

strong { font-weight: 500; }

a, a:hover, a:focus {
    outline: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

img { max-width: 100%; }

/* Top Content Container */
.top-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
}

.inner-bg {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
}

.bgoffsetbg {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
}

/* Left Column - Login Form */
.col-lg-4.col-md-4.col-sm-12.nopadding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px !important;
    background: #f5f5f5;
}

/* Main Login Container */
.loginbg {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: visible;
    max-width: 500px;
    width: 100%;
    position: relative;
    padding: 0;
}

/* Purple Left Border */
.loginbg::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, #5c4d9b 0%, #6b5b95 50%, #7b6ba5 100%);
    border-radius: 12px 0 0 12px;
}

/* Logo Section */
.form-top {
    overflow: hidden;
    padding: 35px 40px 15px 40px;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.form-top-left {
    padding: 0;
    text-align: center;
}

.logowidth {
    text-align: center;
}

.logowidth img {
    width: auto;
    height: 50px;
    max-height: 50px;
}

/* Form Bottom Section */
.form-bottom {
    padding: 15px 40px 35px 40px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    text-align: left;
}

/* Login Title */
.font-white {
    color: #1a1a2e;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 30px;
}

/* Form Groups */
.form-bottom .form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-bottom .form-group.has-feedback {
    margin-bottom: 25px;
}

/* Form Inputs */
input[type="text"],
input[type="password"],
.form-control {
    width: 100%;
    height: 50px;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    font-size: 15px;
    color: #333;
    box-shadow: none !important;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
.form-control:focus {
    border-bottom: 2px solid #4f6bff !important;
    box-shadow: none !important;
    outline: none !important;
}

input::placeholder,
.form-control::placeholder {
    color: #999;
    font-weight: 400;
}

/* Hide Form Feedback Icons */
.form-control-feedback {
    display: none !important;
}

/* Sign In Button */
button.btn,
.form-bottom form button.btn {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #4f6bff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 107, 255, 0.3);
    margin-top: 15px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

button.btn:hover,
.form-bottom form button.btn:hover {
    background: #3d56e0 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 107, 255, 0.4);
    opacity: 1 !important;
    color: #fff !important;
}

/* Ripple Effect */
button.btn:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

button.btn:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Forgot Password Link */
a.forgot {
    color: #4f6bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s ease;
}

a.forgot:hover {
    color: #3d56e0;
    text-decoration: none;
}

a.forgot i {
    margin-right: 5px;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.loginbg .alert-danger {
    background: #fee2e2;
    color: #dc2626;
}

.loginbg .alert-success {
    background: #d1fae5;
    color: #059669;
}

/* Error Messages */
.text-danger {
    color: #dc2626 !important;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.loginbg .text-danger {
    color: #dc2626 !important;
    font-size: 12px;
}

/* Captcha Section */
#captcha_image img {
    border-radius: 8px;
    height: 40px;
}

.catpcha {
    cursor: pointer;
    padding-left: 10px;
    color: #4f6bff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.catpcha:hover {
    color: #3d56e0;
}

/* Right Column - Background Image Section */
.col-lg-8.col-md-8.col-sm-12.nopadding-2 {
    padding: 0 !important;
    margin: 0 !important;
}

.text-wrap,
.d-flex.align-items-center.text-wrap {
    position: relative;
    min-height: 100vh;
    z-index: 0;
    box-sizing: border-box;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #3a5061;
}

.text-wrap:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Notice Section */
.bg-shadow-remove {
    width: 90%;
    max-width: 600px;
}

.bg-shadow-remove:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: -1;
}

.h3 {
    color: #fff;
    text-align: center;
    line-height: normal;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 24px;
}

.loginright {
    text-align: left;
    color: #fff;
    overflow: auto;
    position: relative;
    max-height: 350px;
    height: 330px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px rgba(53, 72, 91, 0.07),
                0 2px 2px rgba(0, 0, 0, 0.01),
                0 4px 4px rgba(0, 0, 0, 0.02),
                0 10px 8px rgba(0, 0, 0, 0.03),
                0 15px 15px rgba(0, 0, 0, 0.03),
                0 30px 30px rgba(0, 0, 0, 0.04),
                0 70px 65px rgba(0, 0, 0, 0.05);
}

.loginright h3 {
    font-size: 20px;
    color: #fff;
    margin-top: 0;
    line-height: normal;
    font-weight: 500;
    padding-bottom: 10px;
}

.loginright h4 {
    font-weight: normal;
    line-height: normal;
    color: #fff;
}

.loginright p {
    line-height: 18px;
    font-size: 13px;
    word-break: break-word;
}

.messages {
    padding-left: 15px;
}

a.more {
    text-decoration: none;
    color: #4f6bff;
    font-size: 12px;
    display: block;
}

a.more:hover {
    color: #3d56e0;
}

.logdivider {
    background: rgba(255, 255, 255, 0.40);
    clear: both;
    width: 100%;
    height: 1px;
    margin: 15px 0;
}

/* Utility Classes */
.nopadding {
    padding-left: 0;
    padding-right: 0;
}

.nopadding-2 {
    padding: 0 !important;
    margin: 0 !important;
}

.ptt10 { padding-top: 10px; }
.pb10 { padding-bottom: 10px; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }

/* Scrollbar Styling */
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background: #4f6bff !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .bgoffsetbg {
        flex-direction: column;
    }

    .col-lg-4.col-md-4.col-sm-12.nopadding {
        width: 100%;
        padding: 30px 20px !important;
    }

    .col-lg-8.col-md-8.col-sm-12.nopadding-2 {
        display: none;
    }

    .loginbg {
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .bgoffsetbg {
        flex-direction: column;
        display: block;
    }

    .col-lg-4.col-md-4.col-sm-12.nopadding {
        padding: 20px !important;
    }

    .form-top {
        padding: 25px 25px 10px 25px;
    }

    .form-bottom {
        padding: 15px 25px 30px 25px;
    }

    .loginbg {
        max-width: 100%;
        margin: 0 auto;
    }

    .font-white {
        font-size: 20px;
    }

    .bg-position-sm-left {
        background-position: center center !important;
    }
}

@media (max-width: 480px) {
    .form-top {
        padding: 20px 20px 10px 20px;
    }

    .form-bottom {
        padding: 10px 20px 25px 20px;
    }

    .logowidth img {
        height: 40px;
    }

    .font-white {
        font-size: 18px;
        margin-bottom: 20px;
    }

    button.btn,
    .form-bottom form button.btn {
        height: 45px;
        line-height: 45px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .bg-position-lg-center {
        background-position: top center !important;
    }
}

/* Additional Legacy Support */
.form-box { margin-top: 25px; }
.separatline { display: none; }
.bgwhite { background: #fff; }
.lineh30 { line-height: 30px; }
.login390 { min-height: 390px; }
.ispace { padding-right: 3px; }

.checked-list-box li a {
    color: #4f6bff;
    font-size: 13px;
}

.checked-list-box li a i {
    padding-left: 0.5rem;
    color: #333;
}

.checked-list-box li img {
    height: 20px;
    vertical-align: sub;
}

.bgoffsetbgno {
    background: transparent;
    border-right: 0 !important;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.29);
    border-radius: 12px;
}

.shadow_bg {
    background: #fff;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.29);
    overflow: hidden;
    border-radius: 12px;
    padding: 1rem;
}

.top-content2 {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* ============================================
   DEMO LOGIN BUTTONS
   ============================================ */

.demo-login-section {
    margin: 25px 0 10px 0;
}

.demo-login-section .role-label {
    display: block;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: left;
}

.demo-login-section .role-label .req {
    color: #ff6b6b;
}

.demo-login-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.demo-login-btn {
    background: #4f6bff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(79, 107, 255, 0.25);
    height: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    width: 100%;
    text-align: center;
}

.demo-login-btn:hover {
    background: #3d56e0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 107, 255, 0.35) !important;
}

.demo-login-btn:active {
    transform: translateY(0);
}

.demo-login-btn.active,
.demo-login-btn:focus {
    background: #2d46c0 !important;
    box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.3), 0 4px 12px rgba(79, 107, 255, 0.35) !important;
    outline: none;
}

/* Responsive for Demo Buttons */
@media (max-width: 480px) {
    .demo-login-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .demo-login-btn {
        padding: 10px 6px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 350px) {
    .demo-login-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-login-btn {
        padding: 8px 4px !important;
        font-size: 9px !important;
    }
}
