﻿body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #0A4E95, #FFB702);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.login-card {
    display: flex;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.6) !important;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /*width: 90%;*/
    max-width: 960px;
}

.login-left {
    flex: 1;
    padding: 30px;
    /* background: #f5f5f5;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*border-right: 1px solid #ddd;*/
    /*background: linear-gradient(0deg, rgb(255, 183, 2), rgb(10, 78, 149));*/
}

    .login-left img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

.login-right {
    flex: 1;
    padding: 30px;
    /*background-color: #f5f5f5;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*background: linear-gradient(0deg, rgb(255, 183, 2), rgb(10, 78, 149));*/
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.login-form .form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 15px;
}

.btn-login {
    background-color: royalblue !important;
    border: none;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    color: white;
}

.input-icon-container {
    position: relative;
}

    .input-icon-container i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

    .input-icon-container input {
        padding-left: 35px;
    }

/* Hide mobile logo and banner by default */
.mobile-logo, .mobile-banner {
    display: none;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-left {
        display: none; /* Hide left image section on mobile */
    }

    .mobile-logo, .mobile-banner {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        margin-top: 10px;
    }

        .mobile-logo img,
        .mobile-banner img {
            max-width: 100%;
            height: auto;
        }

    .login-right {
        padding: 20px;
    }
}

.input100 {
    font-size: 15px;
    line-height: 1.5;
    color: rgb(102, 102, 102);
    display: block;
    width: 100%;
    height: 50px;
    background: rgb(230, 230, 230);
    border-radius: 25px;
    padding: 0px 30px 0px 68px;
    border-style: none;
}

.wrap-login100 {
    background: linear-gradient(to bottom, #0A4E95, #FFB702);
}

.container-login100 {
    /*width: 100%;
            min-height: 100vh;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    /* background: linear-gradient(to bottom, #0A4E95, #FFB702);*/
}

.g-recaptcha {
    padding-left: 5px;
}

.loginWrapper .login-left img.logo {
    max-height: 95px;
    margin-bottom: 0px;
}

.loginWrapper img#imgbanner {
    width: auto;
    border-radius: 8px;
    max-height: 388px;
}

.loginWrapper a:has(#imgbanner) {
    border: 3px solid #ccc;
    border-radius: 8px;
}

.loginWrapper .login-left img {
    display: block;
    margin: 0px;
}

.loginWrapper.login-card {
    width: 100%;
    padding: 35px 50px;
}

.container-login100:has(.loginWrapper) {
    width: 100%;
}

.loginWrapper .login-title {
    font-weight: bold;
    font-size: 30px;
    color: #57B846;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

    .loginWrapper .login-title small {
        text-transform: uppercase;
        color: #194880;
        font-size: 60%;
        font-weight: 900;
        position: relative;
        top: -3px;
    }

.loginWrapper [type="submit"].btn-login {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    text-transform: uppercase;
    height: 50px;
    border-radius: 25px;
    background: #57b846 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .loginWrapper [type="submit"].btn-login:hover {
        background: #194880 !important;
    }

.g-recaptcha > div {
    margin: auto;
}

.loginWrapper > div {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.loginWrapper .input-icon-container input {
    padding-left: 55px;
}

.loginWrapper .input-icon-container i {
    left: 25px;
    margin-top: 1px;
    color: #666666;
}

@media(max-width:991px) and (min-width:768px) {
    .mobile-banner {
        margin-top: 25px;
    }

        .mobile-banner a {
            border: 3px solid #ccc;
            border-radius: 8px;
        }

            .mobile-banner a img {
                border-radius: 8px;
                display: block;
            }
}

@media (max-width:767px) {
    .mobile-banner a {
        border: 3px solid #ccc;
        border-radius: 8px;
    }

        .mobile-banner a img {
            border-radius: 8px;
            display: block;
        }

    .loginWrapper.login-card {
        padding: 0px;
    }

    .loginWrapper .login-title {
        font-size: 27px;
    }

        .loginWrapper .login-title small {
            margin-top: -5px;
        }

    .loginWrapper .input-icon-container input {
        height: 48px;
    }
}

@media (max-width: 370px) {
    .loginWrapper .login-title {
        font-size: 23px;
    }

    .g-recaptcha {
        padding-left: 0px;
        width: 75vw;
    }

        .g-recaptcha > div {
            transform: scale(.8);
            margin-left: -25px;
        }
}

@media(max-width:575px) {
    .g-recaptcha > div {
        width: 270px !important;
    }

        .g-recaptcha > div iframe {
            width: 100%;
        }
}

.footer {
    text-align: center;
    padding: 10px 0;
    background-color: transparent;
    width: 100%;
}

    .footer .copyright-info {
        font-size: 14px;
        color: #0A4E95;
    }

.pwa-install-card {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    padding: 18px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.pwa-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .pwa-header img {
        width: 48px;
        height: 48px;
    }

    .pwa-header h4 {
        font-size: 16px;
        margin: 0;
        font-weight: 600;
    }

.pwa-install-card p {
    font-size: 14px;
    margin: 12px 0 15px;
    color: #555;
}

.pwa-actions {
    display: flex;
    gap: 10px;
}

.install-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.later-btn {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* 3D Book Outer Container */
.book-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px !important;
    margin: 0 auto;
}

/* Beautiful Paperback Book Look (Desktop) */
.book-3d {
    height: 425px !important; /* Highly optimized desktop height */
    position: relative;
    box-shadow: -12px 12px 25px rgba(0,0,0,0.2), -2px 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px 8px 8px 4px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

    /* Book Spine shadow  */
    .book-3d::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 14px;
        height: 100%;
        background: linear-gradient(to right, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 100%);
        z-index: 2;
        pointer-events: none;
    }

    /* Book Crease Line */
    .book-3d::after {
        content: '';
        position: absolute;
        top: 0;
        left: 14px;
        width: 1px;
        height: 100%;
        background: rgba(255,255,255,0.15);
        box-shadow: 1px 0 3px rgba(0,0,0,0.25);
        z-index: 2;
        pointer-events: none;
    }

/* Book Front Cover */
.book-cover {
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
}

    .book-cover img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }

/* ========================================================
   RESPONSIVE TABLET & LAPTOP SIZES
   ======================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .book-3d {
        width: 100% !important;
        height: 375px !important;
    }

        .book-3d::before {
            width: 11px !important;
        }

        .book-3d::after {
            left: 11px !important;
        }
}

/* ========================================================
   RESPONSIVE MOBILE VIEW (Ultra-Compact, Scroll-Free & Cut-Free)
   ======================================================== */
@media (max-width: 767px) {
    html {
        height: 100% !important;
        overflow-y: auto !important;
    }

    body {
        min-height: 150vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 10px !important;
        align-items: flex-start !important;
    }

    .login-container {
        padding: 12px 15px !important; /* Compact container padding to prevent height cutoff */
        overflow: visible !important;
    }

    /* Compact Form Layout on Mobile */
    .mb-4 {
        margin-bottom: 0.75rem !important; /* Saves vertical height */
    }

    .logo img {
        max-width: 90px !important; /* Smaller logo */
    }

    .login-title {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }

    .form-control {
        height: 38px !important; /* Slimmer inputs */
        font-size: 13px !important;
    }

    .btn {
        height: 40px !important; /* Slimmer buttons */
        font-size: 14px !important;
    }

    .form-label {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    /* Beautiful Pocketbook Size on Mobile (Perfect fit) */
    .book-3d {
        width: 100% !important;
        height: 300px !important;
        box-shadow: -6px 6px 14px rgba(0,0,0,0.15) !important;
        margin: 5px auto 0 auto !important; /* Keeps nice layout spacing */
    }

    .book-container {
        padding: 0 !important;
        margin: 0 !important;
    }
}

.df-book-page,
.df-page-front,
.df-page-back {
    cursor: grab !important;
}

    .df-book-page:active {
        cursor: grabbing !important;
    }

.df-page-front,
.df-page-back {
    position: relative;
}

    /* Folded Corner */
    .df-page-front::after,
    .df-page-back::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 35px;
        height: 35px;
        background: linear-gradient( 135deg, transparent 50%, rgba(0,0,0,.15) 50% );
        box-shadow: -2px -2px 5px rgba(0,0,0,.15);
        pointer-events: none;
        z-index: 9999;
    }

.df-book-stage {
    padding: 10px !important;
}
