:root 
{
    --login-accent: #ff7119;
    --login-text: #071227;
    --login-muted: #5f6980;
}

body 
{
    font-family: "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
    background: #f5f6f8;
    color: var(--login-text);
}

.card 
{
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.bg-primary-subtle 
{
    background-color: #ffffff !important;
}

.text-primary,
.card .form-label 
{
    color: var(--login-text) !important;
}

.text-primary p,
.form-control::placeholder,
.forgot-link 
{
    color: var(--login-muted) !important;
}

.login-head 
{
    text-align: center;
}

.login-head h5 
{
    margin-bottom: 8px;
    font-weight: 700;
}

.login-head h5::after 
{
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: var(--login-accent);
}

.login-head p 
{
    margin-bottom: 0;
}

.login-icon-badge 
{
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-accent);
    background: #fff1e8;
    border-radius: 18px;
}

.login-icon-badge .bx 
{
    color: var(--login-accent);
    font-size: 26px;
    line-height: 1;
}

.form-control:focus 
{
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(255, 113, 25, 0.13);
}

.form-control,
.input-group .btn-light
{
    border-color: #d8dde6;
    background-color: #f7f8fa;
}

.input-group .btn-light 
{
    color: #768095;
}

.btn-primary 
{
    border-color: var(--login-accent);
    background: var(--login-accent);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:disabled
{
    border-color: #f0640e;
    background: #f0640e;
}

.forgot-link 
{
    text-decoration: none;
}

.forgot-link:hover 
{
    color: var(--login-accent) !important;
}

.mobile-login-flash 
{
    display: none;
}

.login-icon-badge .bx 
{
    animation: truckEngine 0.3s linear infinite;
}

@keyframes truckEngine 
{
    0%,100% 
    {
        transform: translateY(0);
    }
    25% 
    {
        transform: translateY(-1px);
    }
    50% 
    {
        transform: translateY(1px);
    }
    75% 
    {
        transform: translateY(-1px);
    }
}

@keyframes mobileFlashOut 
{
    to 
    {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes mobileLoader 
{
    from 
    {
        transform: scaleX(0);
    }
    to 
    {
        transform: scaleX(1);
    }
}

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

@media (max-width: 575.98px) 
{
    html,
    body 
    {
        min-height: 100vh;
        min-height: 100dvh;
        background: #ffffff;
    }

    body::before 
    {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 241, 232, 0.96) 0%, rgba(255, 255, 255, 0) 38%);
        pointer-events: none;
        z-index: -1;
    }

    .mobile-login-flash 
    {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 24px;
        color: #ffffff;
        text-align: center;
        background: linear-gradient(135deg, var(--login-accent) 0%, #f0640e 100%);
        animation: mobileFlashOut 0.45s ease 2.2s forwards;
    }

    .mobile-flash-icon 
    {
        width: 86px;
        height: 86px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 22px;
        border-radius: 24px;
        background: #fff1e8;
        color: var(--login-accent);
        box-shadow: 0 18px 34px rgba(7, 18, 39, 0.2);
    }

    .mobile-flash-icon .bx 
    {
        font-size: 38px;
        line-height: 1;
        animation: truckDrive 0.4s linear infinite;
    }

    @keyframes truckDrive 
    {
        0%,100% 
        {
            transform: translateY(0);
        }
        25% 
        {
            transform: translateY(-2px);
        }
        50% 
        {
            transform: translateY(0);
        }
        75% 
        {
            transform: translateY(-2px);
        }
    }
    .mobile-login-flash h2 
    {
        margin: 0 0 8px;
        color: #ffffff;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.25;
    }

    .mobile-login-flash p 
    {
        max-width: 270px;
        margin: 0 0 28px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 14px;
        line-height: 1.45;
    }

    .mobile-flash-loader 
    {
        width: 142px;
        height: 4px;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.24);
    }

    .mobile-flash-loader span 
    {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        background: #ffffff;
        transform-origin: left;
        animation: mobileLoader 2.35s ease forwards;
    }

    .account-pages 
    {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: stretch;
    }

    .account-pages .container 
    {
        display: flex;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .account-pages .row,
    .account-pages .col-md-8 
    {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .card 
    {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        opacity: 0;
        animation: mobileLoginIn 0.55s ease 2.25s forwards;
    }

    .login-head 
    {
        padding: calc(30px + env(safe-area-inset-top)) 22px 26px !important;
    }

    .login-head h5 
    {
        font-size: 22px;
        line-height: 1.25;
    }

    .login-head p 
    {
        font-size: 14px;
        line-height: 1.45;
    }

    .card-body 
    {
        padding-right: 22px;
        padding-left: 22px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .card-body .p-2 
    {
        padding: 0 !important;
    }

    .form-control,
    .input-group-text,
    .input-group .btn 
    {
        min-height: 52px;
        font-size: 16px;
    }

    .form-label 
    {
        font-size: 14px;
        font-weight: 600;
    }

    .btn-primary 
    {
        min-height: 52px;
        border-radius: 8px;
        font-size: 16px;
    }

    .forgot-link,
    .form-check-label 
    {
        font-size: 13px;
    }
}
.forgot-modal 
{
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    overflow: hidden;
}

.forgot-icon-badge 
{
    width: 80px;
    height: 80px;
    background: #fff1e8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-icon-badge i 
{
    font-size: 38px;
    color: var(--login-accent);
    animation: truckEngine .4s infinite;
}

.forgot-title 
{
    color: var(--login-text);
    font-weight: 700;
    margin-bottom: 10px;
}

.forgot-title::after 
{
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    margin: 10px auto 0;
    background: var(--login-accent);
    border-radius: 50px;
}

.forgot-subtitle 
{
    color: var(--login-muted);
    margin-top: 15px;
    font-size: 14px;
}

.forgot-modal .form-control 
{
    background: #f7f8fa;
    border-color: #d8dde6;
}

.forgot-modal .form-control:focus 
{
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(255,113,25,.15);
}

.forgot-modal .input-group-text 
{
    background: #f7f8fa;
    border-color: #d8dde6;
}
