/*=========================================================
  CIMS - Inventory Management System
  Theme : Coempt Enterprise
 
==========================================================*/

:root{
    --primary:#0057D9;
    --primary-dark:#0045AE;
    --secondary:#FF8A00;
    --success:#00B96B;
    --dark:#1B365D;
    --text:#4B5563;
    --light:#F4F8FC;
    --border:#E4EAF2;
    --white:#ffffff;
    --shadow:
        0 20px 60px rgba(0,0,0,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#F7FAFD;
    color:var(--text);
    overflow:hidden;
}

/*==================================================
Bootstrap
==================================================*/
.container-fluid{
    padding:0;
}
.row{
    margin:0;
}

/*==================================================
LEFT PANEL
==================================================*/

.left-panel{
    position:relative;
    overflow:hidden;
    background:
    linear-gradient(135deg, #0057D9 0%, #1679FF 55%, #1D8FFF 100%);
}

/* soft white overlay */

.left-panel::before{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 40%), radial-gradient(circle at 90% 20%, rgba(255,255,255,.08), transparent 35%), radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 35%);
}

/*==================================================
LEFT CONTENT
==================================================*/

.left-content{
    position:relative;
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

/*==================================================
Warehouse Image
==================================================*/

.warehouse-img{
    position:absolute;
    width:72%;
    max-width:650px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    z-index:5;
    opacity:0.5;
    filter:
        brightness(.9)
        saturate(.3)
        drop-shadow(0 25px 40px rgba(0,0,0,.18));
    animation:warehouseFloat 6s ease-in-out infinite;
}

@keyframes warehouseFloat{
    0%,100%{
        transform:translate(-50%,-50%);
    }
    50%{
        transform:translate(-50%,-53%);
    }
}

/*==================================================
Hero Text
==================================================*/

.hero-text{
    position:absolute;
    left:70px;
    bottom:60px;
    color:#fff;
    z-index:20;
    max-width:520px;
}

.hero-text h1{
    font-size:40px;
    font-weight:700;
    line-height:1.2;
    margin-bottom:18px;
}

.hero-text p{
    font-size:17px;
    line-height:1.9;
    opacity:.95;
}

.hero-badge{
    position:absolute;
    top:70px;
    right:70px;
    padding:14px 26px;
    border-radius:40px;
    background:rgba(255,255,255,.18);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.25);
    color:#fff;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 12px 35px rgba(0,0,0,.12);
}
/*==================================================
Animated Circles
==================================================*/

.circle{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(5px);
}

.c1{
    width:250px;
    height:250px;
    top:-80px;
    left:-80px;
    animation:circle1 18s linear infinite;
}

.c2{
    width:150px;
    height:150px;
    bottom:80px;
    right:90px;
    animation:circle2 12s ease-in-out infinite;
}

.c3{
    width:80px;
    height:80px;
    top:45%;
    left:58%;
    animation:circle3 8s ease-in-out infinite;
}

@keyframes circle1{
    50%{
        transform:translateY(30px);
    }
}

@keyframes circle2{
    50%{
        transform:translateX(-25px);
    }
}

@keyframes circle3{
    50%{
        transform:scale(1.25);
    }
}

/*==================================================
Floating Icons
==================================================*/

.icon{
    position:absolute;
    color:rgba(255,255,255,.22);
    z-index:2;
}

.box1{
    top:12%;
    left:10%;
    font-size:48px;
    animation:floatY 5s infinite;
}

.box2{
    bottom:18%;
    left:18%;
    font-size:42px;
    animation:floatY2 6s infinite;
}

.barcode{
    top:18%;
    right:12%;
    font-size:52px;
    animation:scanner 2.5s infinite;
}

.clipboard{
    right:12%;
    top:55%;
    font-size:42px;
    animation:floatX 5s infinite;
}

.chart{
    left:58%;
    top:18%;
    font-size:40px;
    animation:floatY 6s infinite;
}

.qr{
    right:18%;
    bottom:18%;
    font-size:40px;
    animation:floatY2 6s infinite;
}

.truck{
    position:absolute;
    bottom:35px;
    left:-120px;
    font-size:54px;
    color:#FFD54F;
    z-index:15;
    animation:truckMove 18s linear infinite;
    filter:drop-shadow(0 8px 15px rgba(0,0,0,.25));
}

@keyframes truckMove{
    from{
        left:-120px;
    }
    to{
        left:110%;
    }
}

@keyframes floatY{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-18px);
    }
}

@keyframes floatY2{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(15px);
    }
}

@keyframes floatX{
    0%,100%{
        transform:translateX(0);
    }

    50%{
        transform:translateX(18px);
    }
}

@keyframes scanner{
    0%,100%{
        transform:scale(1);
        opacity:.5;
    }

    50%{
        transform:scale(1.12);
        opacity:1;
    }
}
/*==========================================================
LOGIN SIDE
==========================================================*/

.login-side{
    background:#F8FBFF;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
}

/* Soft Background */

.login-side::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    border-radius:50%;
    background:rgba(0,87,217,.05);
    top:-180px;
    right:-180px;
}

.login-side::after{
    content:"";
    position:absolute;
    width:350px;
    height:350px;
    border-radius:50%;
    background:rgba(255,138,0,.05);
    bottom:-120px;
    left:-120px;
}

/*==========================================================
Wrapper
==========================================================*/

.login-wrapper{
    width:100%;
    max-width:470px;
    padding:40px;
    position:relative;
    z-index:10;
}

/*==========================================================
LOGIN CARD
==========================================================*/

.login-card{
    position:relative;
    background:#ffffff;
    border-radius:24px;
    padding:45px;
    border:1px solid #EEF2F7;
    box-shadow:
        0 15px 45px rgba(0,0,0,.08),
        0 4px 15px rgba(0,87,217,.08);
    animation:cardEntry .7s ease;
}

.version-badge{
    position:absolute;
    top:18px;
    right:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:58px;
    height:38px;
    padding:0 16px;
    border-radius:999px;
    background:#FDBA22;
    color:#172033;
    font-size:16px;
    font-weight:700;
    line-height:1;
    box-shadow:0 8px 18px rgba(253,186,34,.25);
}

@keyframes cardEntry{
    from{
        opacity:0;
        transform:translateY(35px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/*==========================================================
LOGO
==========================================================*/

.logo{
    width:80%;
    margin-bottom:18px;
    transition:.35s;
}

.logo:hover{
    transform:rotate(-6deg) scale(1.05);
}

.login-card h2{
    font-size:34px;
    font-weight:700;
    color:var(--dark);
    margin-bottom:5px;
}

.subtitle{
    color:#7B8794;
    font-size:15px;
}

/*==========================================================
FORM
==========================================================*/

form{
    margin-top:35px;
}

.form-label{
    font-weight:600;
    color:#374151;
    font-size:14px;
    margin-bottom:8px;
}

/*==========================================================
INPUT GROUP
==========================================================*/

.input-group{
    border-radius:5px;
    overflow:hidden;
    transition:.30s;
}

.input-group:hover{
    transform:translateY(-2px);
}

.input-group:focus-within{
    box-shadow:
    0 0 0 4px rgba(0,87,217,.12);
}

/* Left Icon */

.input-group-text{
    background:#F4F8FF;
    border:1px solid #DCE6F2;
    color:var(--primary);
    width:54px;
    justify-content:center;
}

/*==========================================================
INPUT
==========================================================*/

.form-control{
    height:56px;
    border:1px solid #DCE6F2;
    border-left:none;
    font-size:15px;
    color:#374151;
    background:#fff;
}

.form-control::placeholder{
    color:#B4BDC8;
}

.form-control:focus{
    box-shadow:none;
    border-color:#DCE6F2;
}

/*==========================================================
PASSWORD BUTTON
==========================================================*/

.password-btn{
    width:55px;
    background:#fff;
    border:1px solid #DCE6F2;
    border-left:none;
    color:#6B7280;
}

.password-btn:hover{
    background:#F5F8FC;
    color:var(--primary);
}

/*==========================================================
REMEMBER
==========================================================*/

.form-check-input{
    cursor:pointer;
}

.form-check-label{
    font-size:14px;
    cursor:pointer;
}

/*==========================================================
LINKS
==========================================================*/

a{
    text-decoration:none;
    color:var(--primary);
    font-size:14px;
    transition:.25s;
}

a:hover{
    color:var(--secondary);
}

/*==========================================================
LOGIN BUTTON
==========================================================*/

.btn-login{
    height:56px;
    border:none;
    border-radius:14px;
    font-size:16px;
    font-weight:600;
    letter-spacing:.5px;
    color:#fff;
    position:relative;
    overflow:hidden;
    background: linear-gradient(90deg, var(--primary), #00c372);
    transition:.35s;
}

/* Shine */

.btn-login::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:60%;
    height:100%;
    background:rgba(255,255,255,.35);
    transform:skewX(-30deg);
}

.btn-login:hover::before{
    animation:shine .9s;
}

@keyframes shine{
    to{
        left:180%;
    }
}

.btn-login:hover{
    transform:translateY(-3px);
    color:#ffffff !important;
    box-shadow: 0 18px 30px rgba(0,87,217,.28);
}

/*==========================================================
FOOTER
==========================================================*/

.footer{
    margin-top:35px;
    padding-top:25px;
    border-top:1px solid #EEF2F7;
    text-align:center;
    color:#94A3B8;
    font-size:13px;
    line-height:1.8;
}

/*==========================================================
TEXT SELECTION
==========================================================*/

::selection{
    background:var(--primary);
    color:#fff;
}

/*==========================================================
SCROLLBAR
==========================================================*/

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#C9D5E5;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#A7B8D3;
}
/*==========================================================
RESPONSIVE
==========================================================*/

@media (max-width:1200px){
    .hero-text{
        left:45px;
        max-width:430px;
    }

    .hero-text h1{
        font-size:34px;
    }

    .warehouse-img{
        width:78%;
    }
}

@media (max-width:991px){
    body{
        overflow:auto;
        background:#F7FAFD;
    }

    .left-panel{
        display:none !important;
    }

    .login-side{
        min-height:100vh;
        padding:30px 15px;
    }

    .login-wrapper{
        max-width:500px;
        padding:0;
    }
}

@media (max-width:576px){
    .login-card{
        padding:30px 22px;
        border-radius:18px;
    }

    .version-badge{
        top:12px;
        right:12px;
        min-width:48px;
        height:32px;
        padding:0 12px;
        font-size:14px;
    }

    .logo{
        width:70px;
    }

    .login-card h2{
        font-size:28px;
    }

    .subtitle{
        font-size:14px;
    }

    .btn-login{
        height:52px;
    }
}

/*==========================================================
FORM ANIMATION
==========================================================*/

.form-control{
    transition:
        border-color .25s,
        box-shadow .25s,
        background .25s;
}

.form-control:focus{
    background:#fff;
}

/*==========================================================
BUTTON CLICK
==========================================================*/

.btn-login:active{
    transform:scale(.98);
}

/*==========================================================
RIPPLE EFFECT
==========================================================*/

.btn{
    position:relative;
    overflow:hidden;
}

.ripple{
    position:absolute;
    width:18px;
    height:18px;
    border-radius:50%;
    background:rgba(255,255,255,.55);
    transform:scale(0);
    animation:ripple .6s linear;
    pointer-events:none;
}

@keyframes ripple{
    to{
        transform:scale(18);
        opacity:0;
    }
}

/*==========================================================
CUSTOM TOAST
==========================================================*/

.custom-toast{
    position:fixed;
    top:25px;
    right:25px;
    min-width:280px;
    padding:16px 22px;
    border-radius:12px;
    color:#fff;
    font-size:14px;
    font-weight:500;
    box-shadow:0 20px 40px rgba(0,0,0,.15);
    opacity:0;
    transform:translateX(350px);
    transition:.35s;
    z-index:99999;
}

.custom-toast.show{
    opacity:1;
    transform:translateX(0);
}

/*==========================================================
ICON FLOATING
==========================================================*/

.icon{
    will-change:transform;
}

/*==========================================================
ANIMATION PERFORMANCE
==========================================================*/

.truck,
.box1,
.box2,
.chart,
.clipboard,
.qr,
.barcode,
.circle,
.analytics-card,
.warehouse-img{
    backface-visibility:hidden;
    transform-style:preserve-3d;
}

/*==========================================================
LOGIN CARD HOVER
==========================================================*/

.login-card{
    transition:
        transform .35s,
        box-shadow .35s;
}

.login-card:hover{
    transform:translateY(-4px);
    box-shadow:
        0 30px 70px rgba(0,0,0,.12);
}

/*==========================================================
INPUT ICON ANIMATION
==========================================================*/

.input-group:hover .input-group-text{
    background:#EAF2FF;
    color:var(--primary);
}

/*==========================================================
CHECKBOX
==========================================================*/

.form-check-input{
    border-color:#B8C7DB;
}

.form-check-input:checked{
    background-color:var(--primary);
    border-color:var(--primary);
}

/*==========================================================
ACCESSIBILITY
==========================================================*/

button:focus,
input:focus,
a:focus{
    outline:none;
}

/*==========================================================
LOADING STATE
==========================================================*/

.btn-login.loading{
    pointer-events:none;
    opacity:.85;
}

/*==========================================================
SMOOTH FADE
==========================================================*/

.fade-in{
    animation:fadeIn .5s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

/*==========================================================
OPTIONAL GLASS EFFECT
==========================================================*/

.glass{
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

/*==========================================================
VERSION TEXT
==========================================================*/

.footer br{
    margin-bottom:5px;
}

/*==========================================================
PRINT
==========================================================*/

@media print{
    .left-panel{
        display:none;
    }
}

/*==========================================================
REDUCE MOTION
==========================================================*/

@media (prefers-reduced-motion:reduce){
    *{
        animation:none !important;
        transition:none !important;
    }
}
