/* =================================================================ro
   Root Variables & Base Styles
================================================================= */
:root {
    --sidebar-bg: #E31E24;
    --sidebar-bg2: #a31818;
    --sidebar-bg3: #ffffff;
    --main-bg: #f8fafc;
    --primary-blue: #0d6efd;
    --primary-red: #E31E24;
    --dark-red: #991b1b;
    --primary-red-active: #7f1d1d;
    --white-color: #ffffff;
    --black-color: #000000;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #935454;
    --bs-btn-disabled-border-color: #935454;
    --bs-btn-disabled-opacity: 0.5;
}

::selection {
    background: #E31E24;
    color: #ffffff;
}

body, html {
    height: 100%;
    margin: 0;
}

@font-face {
    font-family: "MyAptos";
    src: url("/assets/fonts/Aptos.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MyAptosSerif";
    src: url("/assets/fonts/Aptos-Serif.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'MyAptos';
}

.number-font {
    font-family: 'MyAptosSerif';
}

/* =================================================================
   Main Container & Legacy Layout
================================================================= */
.main-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.brand-logo {
    width: 50%;
    filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.25));
}

.brand-section {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70%;
    aspect-ratio: 1 / 2;
    overflow: hidden;
    position: relative;
}

    .brand-section h1 {
        font-weight: 300;
        font-size: 2.5rem;
        margin-left: 3%;
        margin-bottom: 0px !important;
    }

    .brand-section h2 {
        font-size: 1.2rem;
        color: #ffc107;
        margin-bottom: 20px;
        margin-left: 4%;
    }

    .brand-section .features-list {
        margin-left: 3%;
    }

/*.brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}*/

.banner-img {
    width: 120%;
    max-width: none;
}

.features-list {
    list-style: none !important;
    padding: 0;
}

    .features-list li {
        margin-bottom: 15px;
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

        .features-list li::before {
            content: "•";
            margin-right: 10px;
            color: white;
        }

/* =================================================================
   Form Elements & Controls
================================================================= */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.form-control {
    background-color: white;
    border: none;
    padding: 12px;
    font-size: 0.9rem;
}

    .form-control:focus {
        background-color: white;
        box-shadow: none !important;
        border: 1px solid #ced4da;
    }

.form-check-input:checked {
    background-color: #d9251c;
    border-color: #d9251c;
}

.btn-login {
    background-color: #d9251c;
    border: none;
    border-radius: 10px;
    color: white;
    padding: 10px;
    margin-top: 20px;
    width: 100%;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #E31E24, #950004);
        border-color: #E31E24;
        color: var(--white-color);
        transition: .3s ease-in-out
    }

.login-btn {
    display: flex;
    justify-content: center;
    background: var(--primary-red);
    font-size: 14px;
}

.btn:disabled {
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
    background-color: var(--bs-btn-disabled-bg);
    border-color: var(--bs-btn-disabled-border-color);
    opacity: var(--bs-btn-disabled-opacity);
}

.forgot-link {
    text-decoration: none;
    font-weight: 625;
    font-size: 0.85rem;
    color: #E31E24;
}

.footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 10px;
}

.password-group {
    text-align: right;
}

.password-wrapper {
    position: fixed;
}

.toggle-password {
    position: absolute;
    margin-top: 14px;
    right: 15px;
    color: var(--sidebar-bg);
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
    z-index: 15;
}

    .toggle-password:hover {
        color: var(--primary-red);
    }

.text-danger,
#ErrorMessage {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* =================================================================
   Loaders & Animations
================================================================= */
.loader-area {
    display: none;
    margin-right: 10px;
    vertical-align: middle;
}

.gear-loader {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px dotted #fff;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0, 2.12, 1, -0.1) infinite;
    margin-right: 3px;
}

    .gear-loader::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
        border: 2px solid transparent;
        border-top-color: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        animation: spin-reverse 1.2s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}


.login-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1800px;
    margin: auto;
}

.login-header {
    background-color: #ffffff;
}

.ccl-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.workflow-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.min-vh-login {
    min-height: calc(100vh - 130px);
}

.banner-image-container {
    max-width: 90%;
    position: relative;
    z-index: 1;
}

.banner-img {
    object-fit: contain;
}

.login-section {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-card {
    background: #ffffff;
    border: 1px solid #f1f3f6;
    border-radius: 20px;
    padding: 56px 40px;
    width: 100%;
    max-width: 435px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

    .login-card h3 {
        font-weight: 650;
        text-align: center;
        margin-bottom: 5px;
    }

    .login-card p.subtitle {
        text-align: center;
        color: #6c757d;
        font-size: 0.6rem;
        margin-bottom: 30px;
    }

.login-title {
    font-weight: 600;
    color: #1a202c;
    font-size: 30px;
}

.login-form .mb-3 {
    margin-bottom: 1.75rem !important;
}

.input-label {
    font-weight: 550;
    font-size: 14px;
    color: #2d3748;
}

.custom-input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

    .custom-input-group:focus-within {
        border-color: #d9251c;
        box-shadow: 0 0 0 0.2rem rgba(217, 37, 28, 0.12);
    }

    .custom-input-group .form-control {
        border: none;
        font-size: 14px;
        padding: 10px 12px;
        box-shadow: none !important;
    }

    .custom-input-group .input-group-text {
        border: none;
        font-size: 15px;
    }

.custom-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

    .custom-checkbox:checked {
        background-color: #d9251c;
        border-color: #d9251c;
    }

.forgot-link {
    color: #E31E24;
    font-size: 13px;
}

    .forgot-link:hover {
        color: #b81c15;
    }

.btn-signin {
    background-color: #d9251c;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

    .btn-signin:hover {
        background-color: #b81c15;
        color: #ffffff;
    }

.fs-7 {
    font-size: 13px;
}

.extra-small {
    font-size: 12px;
}

.cursor-pointer {
    cursor: pointer;
}

.login-body {
    position: relative;
    /*    background-image: radial-gradient(circle, #d0d5dd 1px, transparent 1px);
    background-size: 18px 18px;
    background-position: 0 0;*/
}

    .login-body::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, transparent 40%, #fcfcfd 85%);
        pointer-events: none;
    }

/* =================================================================
   Responsive Adjustments
================================================================= */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }

    .brand-section, .login-section {
        width: 100%;
        height: auto;
    }

    .brand-section {
        padding: 50px 20px;
        text-align: center;
    }

        .brand-section h1 {
            font-size: 2rem;
        }

    .features-list {
        display: inline-block;
        text-align: left;
    }

    .login-section {
        padding: 40px 10px;
    }
}

#modelOnly {
    background: none;
    border: none;
    color: #E31E24;
    padding: 0px 0px 0px 0px
}

.form-control {
    padding-left: 40px !important
}

.custom-input-group {
    position: relative;
}

.input-group-text {
    position: absolute;
    z-index: 10;
    padding: 0px;
    background-color: transparent !important;
    top: 10px;
    left: 10px;
    border: none;
}

    .input-group-text span {
        font-size: 20px;
    }

.banner-img {
    object-fit: contain;
    width: 120%;
    max-width: none;
}

/*.login-body::after {
    content: "";
    position: absolute;
    z-index: 9999;
    inset: 0;
    background-image: radial-gradient(circle, #d0d5dd 1px, transparent 1px);
    background-size: 18px 18px;
    background-position: 0 0;
}*/






















.login-wrapper {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}




.login-header {
    background-color: #ffffff;
}

.ccl-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.workflow-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}







.banner-img {
    display: hidden;
    width: 120% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}







@media (min-width: 2000px) {

    /* ------------------------------------------------
       MAIN
    ------------------------------------------------ */

    .main-container {
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: row !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }


    /* ------------------------------------------------
       LEFT IMAGE SECTION - 70%
    ------------------------------------------------ */

    .brand-section {
        width: 70% !important;
        height: 100vh !important;
        flex: 0 0 70% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        aspect-ratio: auto !important;
    }


    /* ------------------------------------------------
       IMAGE CONTAINER
    ------------------------------------------------ */

    .banner-image-container {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
    }




    .banner-img {
        width: 120% !important;
        height: auto !important;
        max-width: 130% !important;
        max-height: 100vh !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain !important;
        object-position: left center !important;
    }




    .login-section {
        width: 30% !important;
        height: 100vh !important;
        flex: 0 0 30% !important;
        margin: 0 !important;
        padding-left: clamp(30px, 3vw, 70px) !important;
        padding-right: clamp(30px, 3vw, 70px) !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }


    /* ------------------------------------------------
       LOGIN CARD
    ------------------------------------------------ */

    .login-card {
        width: 100% !important;
        max-width: 540px !important;
        min-height: 540px !important;
        margin: 0 !important;
        padding: clamp(40px, 3vw, 70px) clamp(30px, 2.5vw, 60px) !important;
        box-sizing: border-box !important;
    }


    /* ------------------------------------------------
       FORM TEXT
    ------------------------------------------------ */

    .login-title {
        font-size: clamp(30px, 1.5vw, 40px) !important;
    }

    .input-label {
        font-size: clamp(14px, 0.8vw, 18px) !important;
    }

    .custom-input-group .form-control {
        font-size: clamp(14px, 0.8vw, 18px) !important;
    }


    /* ------------------------------------------------
       ICON
    ------------------------------------------------ */

    .input-group-text span {
        font-size: clamp(20px, 1.2vw, 30px) !important;
    }


    /* ------------------------------------------------
       BUTTON
    ------------------------------------------------ */

    .btn-signin {
        font-size: clamp(14px, 0.9vw, 20px) !important;
        min-height: 48px;
    }


    /* ------------------------------------------------
       FORGOT
    ------------------------------------------------ */

    .forgot-link {
        font-size: clamp(13px, 0.7vw, 17px) !important;
    }


    /* ------------------------------------------------
       CHECKBOX
    ------------------------------------------------ */

    .form-check-label {
        font-size: clamp(14px, 0.8vw, 19px) !important;
    }
}


/* ================================================================
   2400px - 2559px
================================================================ */

@media (min-width: 2400px) and (max-width: 2559px) {

    .brand-section {
        width: 70% !important;
        flex-basis: 70% !important;
    }

    .login-section {
        width: 30% !important;
        flex-basis: 30% !important;
    }

    .banner-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}


/* ================================================================
   EXACT / ABOVE 2560px
================================================================ */

@media (min-width: 2560px) {

    .main-container {
        width: 100vw !important;
        height: 100vh !important;
    }

    .brand-section {
        width: 70vw !important;
        flex: 0 0 70vw !important;
        height: 100vh !important;
    }

    .login-section {
        width: 30vw !important;
        flex: 0 0 30vw !important;
        height: 100vh !important;
    }

    .banner-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}
/* =================================================================
   LAPTOP
================================================================= */

@media (min-width: 993px) and (max-width: 1999px) {

    .brand-section {
        width: 70%;
        flex: 0 0 70%;
        height: 100vh;
        padding: 0;
        aspect-ratio: auto;
    }

    .login-section {
        width: 125%;
        flex: 0 0 30%;
        height: 100vh;
        padding: 0 30px;
    }

    .banner-img {
        width: 120% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    .login-card {
        max-width: 435px;
    }
}


/* =================================================================
   TABLET
================================================================= */

@media (max-width: 992px) {

    html,
    body {
        height: auto;
        overflow-x: hidden;
    }


    .main-container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }


    /* BRAND */

    .brand-section {
        width: 100%;
        flex: none;
        height: auto;
        min-height: 400px;
        padding: 30px 20px;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        text-align: center;
        aspect-ratio: auto;
    }


    .banner-image-container {
        width: 100%;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .banner-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }


    .brand-section h1 {
        font-size: 2rem;
        margin-left: 0;
    }

    .brand-section h2 {
        margin-left: 0;
    }


    .features-list {
        display: inline-block;
        text-align: left;
    }


    /* LOGIN */

    .login-section {
        width: 100%;
        flex: none;
        height: auto;
        min-height: 500px;
        padding: 40px 20px;
        box-sizing: border-box;
    }


    .login-card {
        max-width: 500px;
        min-height: 480px;
    }
}


/* =================================================================
   MOBILE
================================================================= */

@media (max-width: 768px) {

    .brand-section {
        min-height: 300px;
        padding: 20px 15px;
    }


    .banner-image-container {
        height: 300px;
    }


    .banner-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }


    .login-section {
        min-height: auto;
        padding: 25px 15px;
    }


    .login-card {
        max-width: 100%;
        min-height: auto;
        padding: 40px 25px;
        border-radius: 16px;
    }


    .login-title {
        font-size: 26px;
    }
}


/* =================================================================
   SMALL MOBILE
================================================================= */

@media (max-width: 480px) {

    .brand-section {
        min-height: 240px;
        padding: 15px 10px;
    }


    .banner-image-container {
        height: 240px;
    }


    .login-section {
        padding: 20px 10px;
    }


    .login-card {
        padding: 30px 20px;
        border-radius: 14px;
    }


    .login-title {
        font-size: 24px;
    }


    .login-form .mb-3 {
        margin-bottom: 1.2rem !important;
    }
}


/* =================================================================
   VERY SMALL MOBILE
================================================================= */

@media (max-width: 360px) {

    .brand-section {
        min-height: 210px;
    }


    .banner-image-container {
        height: 210px;
    }


    .login-card {
        padding: 25px 15px;
    }


    .login-title {
        font-size: 22px;
    }
}


@media (max-width: 480px) {
    .banner-image-container {
        width: 100%;
        height: 0px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 770px) {
    .banner-image-container {
        height: 0px !important;
    }
}
