/* ============================================================
   GTR TRUCKLINES LOGIN
   Completely isolated CSS
   Mobile + Tablet + Desktop
   ============================================================ */


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.gtr-login-page,
.gtr-login-page *,
.gtr-login-page *::before,
.gtr-login-page *::after {
    box-sizing: border-box;
}


.gtr-login-page {
    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(40, 50, 70, 0.25),
            transparent 42%
        ),
        #08090d;

    color: #f8fafc;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   WRAPPER
   ============================================================ */

.gtr-login-wrapper {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;

    padding: 30px 20px;
}


/* ============================================================
   BRAND
   ============================================================ */

.gtr-login-brand {
    width: 100%;
    text-align: -webkit-center;
}

.gtr-login-brand img{
    width: 100%;
    max-width: 200px;
    display: block;
    object-fit: contain;
}


.gtr-login-logo {
    margin: 0;

    color: #e51e2b;

    font-size: 46px;
    line-height: 46px;

    font-weight: 900;
    font-style: italic;

    letter-spacing: -3px;

    transform: skewX(-6deg);
}


.gtr-login-company {
    margin-top: 5px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 4px;
}


.gtr-login-red-line {
    width: 42px;
    height: 3px;

    margin: 9px auto 8px;

    background: #e51e2b;

    border-radius: 10px;
}


.gtr-login-tagline {
    color: #94a3b8;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}


.gtr-login-tagline span {
    color: #e51e2b;
}


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

.gtr-login-card {
    width: 100%;

    position: relative;

    overflow: hidden;

    background: #10141d;

    border: 1px solid #1e2638;

    border-radius: 20px;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.40);

}


/* ============================================================
   TRUCK BACKGROUND
   ============================================================ */

.gtr-login-truck-bg {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 190px;

    overflow: hidden;

    opacity: 0.15;

    pointer-events: none;
}


.gtr-login-truck-bg img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    filter:
        grayscale(100%)
        contrast(125%);
}


.gtr-login-truck-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(16, 20, 29, 0.10),
            rgba(16, 20, 29, 0.80) 60%,
            #10141d 100%
        );
}


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

.gtr-login-card-content {
    width: 100%;

    position: relative;

    z-index: 2;

    padding: 32px 34px;
}


/* ============================================================
   HEADING
   ============================================================ */

.gtr-login-heading {
    margin-bottom: 28px;

    text-align: center;
}


.gtr-login-heading h1 {
    margin: 0 0 7px 0;
    padding: 0;

    color: #ffffff;

    font-size: 24px;
    line-height: 30px;

    font-weight: 700;
}


.gtr-login-heading p {
    margin: 0;
    padding: 0;

    color: #8d95a5;

    font-size: 13px;
    line-height: 20px;
}


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

.gtr-login-page form {
    width: 100%;

    margin: 0;
    padding: 0;
}


.gtr-login-form-group {
    width: 100%;

    margin: 0 0 20px 0;
}


.gtr-login-form-group label {
    display: block;

    margin: 0 0 8px 0;

    color: #cbd5e1;

    font-size: 11px;
    line-height: 16px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


/* ============================================================
   LABEL + FORGOT PASSWORD
   ============================================================ */

.gtr-login-label-row {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.gtr-login-forgot {
    margin-bottom: 8px;

    color: #e51e2b !important;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none !important;

    text-transform: none;

    letter-spacing: normal;
}


.gtr-login-forgot:hover {
    color: #ff3b46 !important;

    text-decoration: underline !important;
}


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

.gtr-login-input-wrapper {
    width: 100%;

    position: relative;
}


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

.gtr-login-input-icon {
    width: 46px;

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748b;

    pointer-events: none;

    z-index: 2;
}


.gtr-login-input-icon svg {
    width: 18px;
    height: 18px;

    display: block;
}


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

   High specificity intentionally prevents Bootstrap's
   .form-control/input styles from changing the login field.
   ============================================================ */

.gtr-login-page input.gtr-login-input {
    width: 100% !important;
    height: 48px !important;

    display: block !important;

    margin: 0 !important;

    padding:
        0
        48px
        0
        46px !important;

    background:
        #090d13 !important;

    border:
        1px solid
        #293448 !important;

    border-radius:
        11px !important;

    box-shadow:
        none !important;

    outline:
        none !important;

    color:
        #ffffff !important;

    font-family:
        inherit !important;

    font-size:
        14px !important;

    font-weight:
        400 !important;

    line-height:
        48px !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease !important;
}


.gtr-login-page input.gtr-login-input::placeholder {
    color: #566176 !important;

    opacity: 1;
}


.gtr-login-page input.gtr-login-input:focus {
    background:
        #090d13 !important;

    border-color:
        #e51e2b !important;

    box-shadow:
        0 0 0 3px
        rgba(229, 30, 43, 0.10) !important;
}


/* Browser Autofill */

.gtr-login-page input.gtr-login-input:-webkit-autofill,
.gtr-login-page input.gtr-login-input:-webkit-autofill:hover,
.gtr-login-page input.gtr-login-input:-webkit-autofill:focus {

    -webkit-text-fill-color:
        #ffffff !important;

    -webkit-box-shadow:
        0 0 0 1000px
        #090d13 inset !important;

    transition:
        background-color 9999s ease-out;
}


/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */

.gtr-login-password-toggle {
    width: 44px;
    height: 46px;

    position: absolute;

    top: 1px;
    right: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;

    border: 0;

    color: #64748b;

    cursor: pointer;

    outline: none;
}


.gtr-login-password-toggle:hover {
    color: #ffffff;
}


.gtr-login-password-toggle svg {
    width: 18px;
    height: 18px;
}


/* ============================================================
   ERROR
   ============================================================ */

.gtr-login-error {
    margin-top: 6px;

    color: #fb7185;

    font-size: 11px;
    line-height: 16px;
}


.gtr-login-api-error {
    width: 100%;

    margin-bottom: 15px;

    padding: 10px 12px;

    background:
        rgba(229, 30, 43, 0.08);

    border:
        1px solid
        rgba(229, 30, 43, 0.25);

    border-radius: 8px;

    color: #fb7185;

    font-size: 12px;
}


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

.gtr-login-options {
    width: 100%;

    margin:
        -3px
        0
        20px;
}


.gtr-login-remember {
    display: inline-flex !important;

    align-items: center;

    gap: 8px;

    margin: 0 !important;

    color: #aeb7c6 !important;

    font-size: 12px !important;

    font-weight: 400 !important;

    text-transform: none !important;

    letter-spacing: normal !important;

    cursor: pointer;
}


.gtr-login-remember input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #e51e2b;

    cursor: pointer;
}


/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.gtr-login-submit {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin: 0;
    padding: 0 20px;

    background: #e51e2b;

    border: 0;

    border-radius: 11px;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 22px
        rgba(229, 30, 43, 0.28);

    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.gtr-login-submit:hover {
    background: #cf1824;

    box-shadow:
        0 10px 28px
        rgba(229, 30, 43, 0.35);
}


.gtr-login-submit:active {
    transform: scale(0.99);
}


.gtr-login-submit:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    box-shadow: none;
}


.gtr-login-submit svg {
    width: 17px;
    height: 17px;
}


/* ============================================================
   SECURITY
   ============================================================ */

.gtr-login-security {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 22px;

    padding-top: 14px;

    border-top:
        1px solid #1a2130;

    color: #7d8798;

    font-size: 10px;
    line-height: 15px;

    text-align: center;
}


.gtr-login-security svg {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    color: #e51e2b;
}


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

.gtr-login-footer {
    width: 100%;

    padding-top: 18px;

    text-align: center;

    color: #718096;

    font-size: 11px;
    line-height: 18px;
}


.gtr-login-footer p {
    margin: 0 0 3px 0;
}


.gtr-login-footer a {
    color: #e51e2b !important;

    font-weight: 600;

    text-decoration: none !important;
}


.gtr-login-footer a:hover {
    text-decoration: underline !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media screen and (max-width: 768px) {

    .gtr-login-wrapper {
        max-width: 560px;

        padding:
            24px
            20px;
    }


    .gtr-login-card-content {
        padding:
            28px
            28px;
    }


    .gtr-login-logo {
        font-size: 42px;

        line-height: 42px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media screen and (max-width: 576px) {

    .gtr-login-page {
        align-items: flex-start;
    }


    .gtr-login-wrapper {
        width: 100%;
        max-width: none;

        padding:
            20px
            14px
            25px;
    }


    .gtr-login-brand {
        margin-bottom: 14px;
    }


    .gtr-login-logo {
        font-size: 38px;

        line-height: 38px;
    }


    .gtr-login-company {
        font-size: 11px;

        letter-spacing: 3px;
    }


    .gtr-login-card {
        border-radius: 16px;
    }


    .gtr-login-card-content {
        padding:
            24px
            18px;
    }


    .gtr-login-heading {
        margin-bottom: 24px;
    }


    .gtr-login-heading h1 {
        font-size: 21px;

        line-height: 27px;
    }


    .gtr-login-heading p {
        font-size: 12px;

        line-height: 18px;
    }


    .gtr-login-form-group {
        margin-bottom: 18px;
    }


    .gtr-login-page input.gtr-login-input {
        height: 48px !important;

        font-size: 16px !important;

        /*
         * 16px prevents automatic zoom
         * on iPhone when input receives focus.
         */
    }


    .gtr-login-security {
        align-items: flex-start;

        padding-left: 5px;
        padding-right: 5px;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media screen and (max-width: 360px) {

    .gtr-login-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }


    .gtr-login-card-content {
        padding-left: 14px;
        padding-right: 14px;
    }

}