:root {
    --invoice-blue: #087cf0;
    --invoice-blue-dark: #0568cc;
    --ink: #252a31;
}

.login-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #f6faff;
}

.invoice-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #eef6fb;
}

.invoice-background::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: rgba(255, 255, 255, .70);
}

.invoice-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: blur(7px);
    opacity: .82;
    transform: scale(1.045);
}

.login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 24px;
}

.login-card {
    width: min(100%, 420px);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 38px rgba(31, 52, 76, .20);
}

.login-card-body {
    padding: 32px 46px 56px;
}

.login-heading {
    margin-bottom: 27px;
}

.brand-logo {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 29px;
    background: var(--invoice-blue);
    border-radius: 11px;
    box-shadow: 0 7px 14px rgba(8, 124, 240, .22);
}

.brand-name {
    margin: 0 0 18px;
    color: var(--invoice-blue);
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -.045em;
}

.login-heading h1 {
    margin: 0 0 9px;
    color: #292d32;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.login-intro {
    max-width: 370px;
    margin: 0 auto;
    color: #59636e;
    font-size: .92rem;
    line-height: 1.4;
}

.login-alert {
    margin-bottom: 18px;
    padding: 11px 14px;
    font-size: .9rem;
}

.login-field {
    position: relative;
    margin-bottom: 17px;
}

.login-input {
    min-height: 48px;
    padding: 10px 14px;
    color: #252a31;
    font-size: .93rem;
    border: 1px solid #c8d0d7;
    border-radius: 7px;
}

.login-input::placeholder {
    color: #7b8289;
    opacity: 1;
}

.login-input:focus {
    border-color: var(--invoice-blue);
    box-shadow: 0 0 0 3px rgba(8, 124, 240, .15);
}

.password-field .login-input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 48px;
    padding: 0;
    color: #6b7480;
    background: transparent;
    border: 0;
    border-radius: 0 7px 7px 0;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--invoice-blue);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--invoice-blue);
    outline-offset: -5px;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 18px;
    color: #fff;
    font-size: .98rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--invoice-blue);
    border: 1px solid var(--invoice-blue);
    border-radius: 6px;
    box-shadow: 0 6px 13px rgba(8, 124, 240, .19);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -1px 0 6px;
    font-size: .88rem;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #30363d;
    cursor: pointer;
}

.login-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--invoice-blue);
}

.login-link {
    color: var(--invoice-blue);
    font-weight: 500;
    text-decoration: none;
}

.login-link:hover,
.login-link:focus-visible {
    color: var(--invoice-blue-dark);
    text-decoration: underline;
}

.login-submit:hover {
    color: #fff;
    background: var(--invoice-blue-dark);
    border-color: var(--invoice-blue-dark);
    box-shadow: 0 9px 18px rgba(8, 124, 240, .27);
    transform: translateY(-1px);
}

.login-submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(8, 124, 240, .23);
}

.login-security {
    margin-top: 25px;
    color: #7a828d;
    font-size: .85rem;
}

.login-security i {
    margin-right: 4px;
    color: var(--invoice-blue);
}

.login-signup {
    margin-top: 18px;
    color: #4d5660;
    font-size: .88rem;
}

@media (max-width: 576px) {
    .login-layout {
        display: block;
        padding: 20px 16px;
    }

    .login-card {
        margin: 0 auto;
    }

    .login-card-body {
        padding: 30px 24px 28px;
    }

    .login-heading {
        margin-bottom: 23px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
        font-size: 26px;
    }

    .brand-name {
        margin-bottom: 15px;
    }
}
