﻿/*=========================================
    GOOGLE FONT
==========================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Poppins',sans-serif;
    background: #eef5ef;
    overflow: hidden;
}

/*=========================================
        PAGE BACKGROUND
==========================================*/

body {
    background: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)), url("../image/csr-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*=========================================
        LOGIN WRAPPER
==========================================*/

.login-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

/*=========================================
        LEFT PANEL
==========================================*/

.left-panel {
    width: 60%;
    height: 92vh;
    position: relative;
    overflow: hidden;
    border-radius: 30px 0 0 30px;
    /*background: linear-gradient( rgba(33,90,48,.55), rgba(20,60,35,.75) ), url("../../../Content/assets/image/csr-login.png");*/
    background:url("../../../Content/assets/image/csr-login.png");
    background-size: cover;
    background-position: center;
}



/*=========================================
        OVERLAY
==========================================*/

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(0,70,30,.30), rgba(0,0,0,.15) );
}

/*=========================================
        LEFT CONTENT
==========================================*/

.left-content {
    position: relative;
    z-index: 2;
    padding: 55px;
    /*color: #fff;*/
    color: #000;
    height: 100%;
}

/*=========================================
        COMPANY LOGO
==========================================*/

.company-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 12px;
}

.portal-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.portal-tagline {
    font-size: 14px;
    opacity: .95;
}

/*=========================================
        DIVIDER
==========================================*/

.divider {
    width: 70px;
    height: 4px;
    border-radius: 30px;
    background: #7CFF84;
    margin: 25px 0;
}

/*=========================================
        MAIN TITLE
==========================================*/

.left-content h1 {
    font-size: 40px;
    line-height: 65px;
    font-weight: 700;
    margin-bottom: 18px;
}

    .left-content h1 span {       
        color: #9DFF8F;
    }

/*=========================================
        DESCRIPTION
==========================================*/

.description {
    width: 75%;
    font-size: 17px;
    line-height: 32px;
    opacity: .95;
    margin-bottom: 35px;
}

/*=========================================
        FEATURE GRID
==========================================*/

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2,190px);
    gap: 18px;
    margin-bottom: 35px;
}

/*=========================================
        FEATURE CARD
==========================================*/

.feature-card {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 25px;
    transition: .35s;
    border: 1px solid rgba(255,255,255,.18);
}

    .feature-card:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,.22);
    }

    .feature-card i {
        font-size: 32px;
        color: #9DFF8F;
        margin-bottom: 15px;
    }

    .feature-card h5 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .feature-card span {
        font-size: 14px;
        opacity: .9;
    }

/*=========================================
        STATISTICS
==========================================*/

.statistics {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(0,0,0,.28);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    backdrop-filter: blur(10px);
}

    .stat-box i {
        font-size: 26px;
        color: #8CFF80;
        margin-bottom: 10px;
    }

    .stat-box h3 {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 6px;
    }

    .stat-box small {
        font-size: 13px;
        color: #d8d8d8;
    }

/*=========================================
        QUOTE
==========================================*/

.quote {
    margin-top: 35px;
    font-size: 16px;
    font-style: italic;
    opacity: .95;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .quote i {
        font-size: 26px;
        color: #9DFF8F;
    }
/*=========================================
        RIGHT PANEL
==========================================*/

.right-panel {
    width: 40%;
    height: 92vh;
    background: #edf4ee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 30px 30px 0;
    position: relative;
    overflow: hidden;
}

    /* Background Blur Circle */

    .right-panel::before {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: rgba(85,190,95,.12);
        top: -120px;
        right: -120px;
        filter: blur(20px);
    }

    .right-panel::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(90,190,255,.08);
        bottom: -80px;
        left: -60px;
    }

/*=========================================
        LOGIN CARD
==========================================*/

.login-card {
    width: 86%;
    background: #ffffff;
    border-radius: 30px;
    padding: 45px;
    position: relative;
    z-index: 5;
    box-shadow: 0 25px 70px rgba(0,0,0,.12);
    animation: fadeUp .8s ease;
}

/*=========================================
        LOGIN LOGO
==========================================*/

.login-logo {
    width: 95px;
    height: 95px;
    margin: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

    .login-logo img {
        width: 65px;
    }

/*=========================================
        TITLE
==========================================*/

.login-card h2 {
    text-align: center;
    color: #183b24;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card p {
    text-align: center;
    color: #777;
    font-size: 15px;
    margin-bottom: 35px;
}

/*=========================================
        INPUT GROUP
==========================================*/

.input-group-custom {
    position: relative;
    margin-bottom: 22px;
}

    .input-group-custom input {
        width: 100%;
        height: 58px;
        border: 1px solid #d8e4d8;
        border-radius: 14px;
        padding-left: 52px;
        padding-right: 52px;
        font-size: 15px;
        outline: none;
        transition: .35s;
        background: #fff;
    }

        .input-group-custom input:focus {
            border-color: #39b54a;
            box-shadow: 0 0 0 4px rgba(57,181,74,.12);
        }

    /* Left Icon */

    .input-group-custom i:first-child {
        position: absolute;
        left: 18px;
        top: 20px;
        font-size: 18px;
        color: #5e7d5e;
    }

    /* Password Eye */

    .input-group-custom i:last-child {
        position: absolute;
        right: 18px;
        top: 20px;
        font-size: 18px;
        cursor: pointer;
        color: #777;
    }

        .input-group-custom i:last-child:hover {
            color: #39b54a;
        }

/*=========================================
        REMEMBER
==========================================*/

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 30px;
    font-size: 14px;
}

    .remember-row label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #555;
        cursor: pointer;
    }

    .remember-row input {
        width: 17px;
        height: 17px;
    }

    .remember-row a {
        color: #2ea94e;
        text-decoration: none;
        font-weight: 600;
    }

        .remember-row a:hover {
            color: #0d8d39;
        }

/*=========================================
        LOGIN BUTTON
==========================================*/

.login-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient( 90deg, #1c9d46, #4fd066 );
    transition: .35s;
    cursor: pointer;
}

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 35px rgba(0,0,0,.15);
    }

    .login-btn i {
        margin-right: 10px;
    }

/*=========================================
        DIVIDER
==========================================*/

.divider-text {
    margin: 32px 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
}

    .divider-text::before {
        content: "";
        flex: 1;
        height: 1px;
        background: #ddd;
    }

    .divider-text span {
        padding: 0 18px;
    }

    .divider-text::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #ddd;
    }

/*=========================================
        SOCIAL LOGIN
==========================================*/

.social-login button {
    width: 100%;
    height: 55px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: .35s;
    font-size: 15px;
    font-weight: 500;
}

    .social-login button:hover {
        background: #f5f8f5;
        border-color: #39b54a;
    }

.social-login img {
    width: 26px;
}

/*=========================================
        SECURE BOX
==========================================*/

.secure-box {
    margin-top: 22px;
    background: #edf8ef;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 15px;
    align-items: center;
}

    .secure-box i {
        font-size: 34px;
        color: #2ea94e;
    }

    .secure-box strong {
        display: block;
        color: #24552d;
        font-size: 15px;
    }

    .secure-box small {
        color: #666;
    }

/*=========================================
        FOOTER LINKS
==========================================*/

.footer-links {
    display: flex;
    justify-content: space-around;
    margin-top: 28px;
    color: #666;
    font-size: 14px;
}

    .footer-links i {
        color: #2ea94e;
        margin-right: 6px;
    }

/*=========================================
        COPYRIGHT
==========================================*/

.copyright {
    margin-top: 18px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/*=========================================
        ANIMATION
==========================================*/

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*=========================================
        FLOATING SHAPES
==========================================*/

.left-panel::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    top: -80px;
    right: -60px;
    animation: floatOne 8s ease-in-out infinite;
}

.left-panel::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    bottom: 60px;
    left: -40px;
    animation: floatTwo 6s ease-in-out infinite;
}

/*=========================================
        FEATURE CARD EFFECT
==========================================*/

.feature-card {
    cursor: pointer;
    transition: all .35s ease;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 18px 40px rgba(0,0,0,.20);
    }

/*=========================================
        STAT BOX EFFECT
==========================================*/

.stat-box {
    transition: .35s;
}

    .stat-box:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,.18);
    }

/*=========================================
        INPUT PLACEHOLDER
==========================================*/

.input-group-custom input::placeholder {
    color: #999;
}

/*=========================================
        INPUT HOVER
==========================================*/

.input-group-custom input:hover {
    border-color: #39b54a;
}

/*=========================================
        LOGIN BUTTON ACTIVE
==========================================*/

.login-btn:active {
    transform: scale(.98);
}

/*=========================================
        SOCIAL BUTTON EFFECT
==========================================*/

.social-login button {
    cursor: pointer;
}

    .social-login button img {
        transition: .3s;
    }

    .social-login button:hover img {
        transform: rotate(-8deg) scale(1.08);
    }

/*=========================================
        SCROLLBAR
==========================================*/

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #3cb44a;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #f3f3f3;
}

/*=========================================
        ANIMATIONS
==========================================*/

@keyframes floatOne {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(25px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatTwo {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(0px);
    }
}

/*=========================================
        RESPONSIVE
==========================================*/

@media(max-width:1200px) {

    .left-content {
        padding: 35px;
    }

        .left-content h1 {
            font-size: 42px;
            line-height: 52px;
        }

    .description {
        width: 100%;
        font-size: 15px;
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .statistics {
        grid-template-columns: repeat(2,1fr);
    }

    .login-card {
        width: 92%;
        padding: 35px;
    }
}

/*=========================================
        TABLET
==========================================*/

@media(max-width:991px) {

    .login-wrapper {
        padding: 20px;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        border-radius: 30px;
        height: auto;
        min-height: 90vh;
    }

    .login-card {
        width: 500px;
        max-width: 100%;
    }
}

/*=========================================
        MOBILE
==========================================*/

@media(max-width:768px) {

    body {
        overflow: auto;
    }

    .login-wrapper {
        padding: 15px;
    }

    .login-card {
        padding: 28px;
        border-radius: 22px;
    }

    .login-logo {
        width: 75px;
        height: 75px;
    }

        .login-logo img {
            width: 50px;
        }

    .login-card h2 {
        font-size: 28px;
    }

    .login-card p {
        font-size: 14px;
    }

    .input-group-custom input {
        height: 52px;
        font-size: 14px;
    }

    .login-btn {
        height: 52px;
        font-size: 16px;
    }

    .social-login button {
        height: 50px;
        font-size: 14px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/*=========================================
        SMALL MOBILE
==========================================*/

@media(max-width:480px) {

    .login-wrapper {
        padding: 10px;
    }

    .login-card {
        padding: 22px;
    }

        .login-card h2 {
            font-size: 24px;
        }

        .login-card p {
            font-size: 13px;
            margin-bottom: 20px;
        }

    .input-group-custom {
        margin-bottom: 16px;
    }

    .remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .secure-box {
        flex-direction: column;
        text-align: center;
    }

        .secure-box i {
            margin-bottom: 10px;
        }

    .footer-links {
        font-size: 13px;
    }

    .copyright {
        font-size: 12px;
    }
}

/*=========================================
        LOADER (Optional)
==========================================*/

.loading {
    pointer-events: none;
    opacity: .6;
}

    .loading .login-btn {
        background: #8fcf99;
        cursor: not-allowed;
    }

/*=========================================
        FOCUS ACCESSIBILITY
==========================================*/

button:focus,
input:focus,
a:focus {
    outline: none;
}

/*=========================================
        SMOOTH TRANSITION
==========================================*/

* {
    transition: background .3s, color .3s, border .3s, box-shadow .3s, transform .3s;
}

/*@media (min-width:1200px) {

    .login-wrapper {
        display: flex;
        width: 100%;
        height: 100vh;
    }

    .left-panel {
        width: 60%;
        height: 100vh;
        border-radius: 25px 0 0 25px;
    }

    .right-panel {
        width: 40%;
        height: 100vh;
        border-radius: 0 25px 25px 0;
    }

    .login-card {
        width: 450px;
        max-width: 90%;
    }
}*/

@media (max-width:1199px) {

    .left-panel {
        width: 55%;
    }

    .right-panel {
        width: 45%;
    }

    .left-content {
        padding: 40px;
    }

        .left-content h1 {
            font-size: 40px;
            line-height: 50px;
        }

    .description {
        font-size: 15px;
        line-height: 26px;
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .login-card {
        width: 90%;
        padding: 35px;
    }
}

@media (max-width:991px) {

    html,
    body {
        overflow: auto;
    }

    .login-wrapper {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .left-panel {
        width: 100%;
        height: auto;
        min-height: 420px;
        border-radius: 20px 20px 0 0;
    }

    .right-panel {
        width: 100%;
        height: auto;
        border-radius: 0 0 20px 20px;
        padding: 30px 15px;
    }

    .left-content {
        padding: 35px;
    }

        .left-content h1 {
            font-size: 34px;
            line-height: 42px;
        }

    .description {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .login-card {
        width: 100%;
        max-width: 500px;
        margin: auto;
    }
}

@media (max-width:767px) {

    .left-panel {
        min-height: auto;
    }

    .left-content {
        padding: 25px;
    }

    .company-logo {
        width: 60px;
    }

    .portal-name {
        font-size: 15px;
    }

    .portal-tagline {
        font-size: 13px;
    }

    .left-content h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .description {
        font-size: 14px;
        line-height: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 18px;
    }

    .quote {
        margin-top: 20px;
        font-size: 14px;
    }

    .login-card {
        padding: 25px;
    }

        .login-card h2 {
            font-size: 26px;
        }

    .login-logo {
        width: 70px;
        height: 70px;
    }

        .login-logo img {
            width: 45px;
        }

    .input-group-custom input {
        height: 48px;
    }

    .login-btn {
        height: 48px;
    }

    .remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .secure-box {
        flex-direction: column;
        text-align: center;
    }
}

.password-policy {
    background: #f8faf8;
    border: 1px solid #dfe8df;
    border-radius: 12px;
    padding: 15px;
}

    .password-policy .valid,
    .password-policy .invalid {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .password-policy .valid {
        color: #198754;
        background: #e9f8ef;
    }

    .password-policy .invalid {
        color: #dc3545;
        background: #fdeaea;
    }

    .password-policy i {
        width: 18px;
        text-align: center;
    }