﻿
.has-error .form-control {
    border-color: #d9534f;
    background-color: #fff4f4;
}

.has-error label {
    color: #d9534f;
}

.has-error .input-group-addon {
    color: red;
    background-color: #fdf7f7;
    border-color: #d9534f !important;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #111827;
    --dark-soft: #1f2937;
    --background: #eef2f7;
    --white: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}


body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--text);
}


/* =====================================================
           PAGE
        ====================================================== */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}


/* =====================================================
           MAIN CARD
        ====================================================== */

.login-card {
    width: 100%;
    max-width: 1120px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 440px;
    overflow: hidden;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba( 15, 23, 42, .13 );
}


/* =====================================================
           LEFT SIDE
        ====================================================== */

.login-left {
    /* position: relative;
    min-height: 680px;
    background: linear-gradient( 135deg, #111827, #1e3a8a );
    overflow: hidden;*/
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, .96) 0%, rgba(15, 23, 42, .78) 42%, rgba(15, 23, 42, .35) 100%), url(https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1800&q=85);
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    position: relative;
}


/*
           IMAGE PLACEHOLDER

           Add your image later:

           background-image:
               url('../Images/trucking.jpg');

           background-size: cover;
           background-position: center;
        */


.left-pattern {
    position: absolute;
    inset: 0;
    opacity: .10;
    background-image: linear-gradient( 45deg, transparent 45%, #ffffff 45%, #ffffff 55%, transparent 55% );
    background-size: 80px 80px;
}


.left-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, transparent 20%, rgba( 15, 23, 42, .95 ) );
}


.left-content {
    position: absolute;
    left: 55px;
    right: 55px;
    bottom: 55px;
    z-index: 5;
    color: white;
}


.fleet-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 50px;
    background: rgba( 255, 255, 255, .10 );
    border: 1px solid rgba( 255, 255, 255, .15 );
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .7px;
}


    .fleet-label i {
        color: #60a5fa;
    }


.left-content h1 {
    margin: 0 0 15px;
    max-width: 550px;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}


.left-content p {
    max-width: 520px;
    margin: 0;
    color: rgba( 255, 255, 255, .70 );
    font-size: 14px;
    line-height: 1.7;
}


/* =====================================================
           STAT CARDS
        ====================================================== */

.stats {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}


.stat {
    min-width: 115px;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba( 255, 255, 255, .08 );
    border: 1px solid rgba( 255, 255, 255, .10 );
}


    .stat strong {
        display: block;
        font-size: 15px;
        font-weight: 700;
    }


    .stat span {
        color: rgba( 255, 255, 255, .55 );
        font-size: 10px;
    }


/* =====================================================
           RIGHT SIDE
        ====================================================== */

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
    background: #ffffff;
}


.login-form {
    width: 100%;
    max-width: 330px;
}


/* =====================================================
           BRAND
        ====================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}


.brand-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
   /* border-radius: 11px;
    background: var(--primary);*/
    color: white;
    font-size: 19px;
}


.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.4px;
}


/* =====================================================
           HEADER
        ====================================================== */

.form-header {
    margin-bottom: 28px;
}


    .form-header .small-title {
        display: block;
        margin-bottom: 8px;
        color: var(--primary);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .8px;
    }


    .form-header h2 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -.7px;
    }


    .form-header p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
    }


/* =====================================================
           INPUT
        ====================================================== */

.field {
    margin-bottom: 18px;
}


    .field label {
        display: block;
        margin-bottom: 7px;
        font-size: 12px;
        font-weight: 600;
    }


.input-box {
    position: relative;
}


    .input-box > i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        z-index: 2;
    }


.input {
    width: 100%;
    height: 48px;
    padding: 0 42px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: .2s ease;
}


    .input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba( 37, 99, 235, .10 );
    }


    .input::placeholder {
        color: #9ca3af;
    }


/* =====================================================
           PASSWORD
        ====================================================== */

.password-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    border-radius: 7px;
    cursor: pointer;
}


    .password-button:hover {
        background: #f3f4f6;
        color: #111827;
    }


/* =====================================================
           ERROR
        ====================================================== */

.error {
    display: block;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12px;
}


/* =====================================================
           LOGIN BUTTON
        ====================================================== */

.sign-in {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}


    .sign-in:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba( 37, 99, 235, .20 );
    }


/* =====================================================
           FOOTER
        ====================================================== */

.footer {
    margin-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.6;
}


/* =====================================================
           TABLET
        ====================================================== */

@media (max-width: 1000px) {

    .login-card {
        max-width: 900px;
        grid-template-columns: 1fr 390px;
    }


    .login-right {
        padding: 40px;
    }


    .left-content {
        left: 40px;
        right: 40px;
        bottom: 40px;
    }


        .left-content h1 {
            font-size: 36px;
        }
}


/* =====================================================
           MOBILE
        ====================================================== */

@media (max-width: 767px) {

    .login-page {
        min-height: 100vh;
        padding: 0;
        background: #ffffff;
    }


    .login-card {
        min-height: 100vh;
        min-height: 100dvh;
        display: block;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
    }


    .login-left {
        display: none;
    }


    .login-right {
        min-height: 100vh;
        min-height: 100dvh;
        padding: max( 28px, env(safe-area-inset-top) ) 24px max( 28px, env(safe-area-inset-bottom) );
    }


    .login-form {
        max-width: 420px;
    }


    .brand {
        margin-bottom: 42px;
    }


    .form-header h2 {
        font-size: 27px;
    }
}


/* =====================================================
           SMALL PHONE
        ====================================================== */

@media (max-width: 380px) {

    .login-right {
        padding-left: 18px;
        padding-right: 18px;
    }


    .brand {
        margin-bottom: 32px;
    }


    .form-header {
        margin-bottom: 24px;
    }


        .form-header h2 {
            font-size: 25px;
        }
}

