/* Login page styles. Plain global CSS on purpose: Blazor scoped CSS does not reach the
   <form>/<input> elements rendered by EditForm and InputText. Every class starts with lg-
   so nothing here can collide with style.css. */

.lg-topbar {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: #111;
    color: #fff;
    padding: .7rem 1.75rem;
    border-bottom: 2px solid #ffd400;
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

    .lg-topbar .lg-title {
        font-weight: 700;
        font-size: 1.1rem;
        color: #fff;
        line-height: 1.3;
    }

    .lg-topbar .lg-brand-logo {
        height: 2.5rem;
        width: 2.5rem;
        border-radius: 8px;
        flex: none;
        display: block;
    }

    .lg-topbar .lg-sub {
        font-size: .72rem;
        color: #b9b9b0;
        margin-top: .15rem;
    }

/* One screen, no page scrollbar: the shell is exactly the window height, the header takes
   what it needs and the page area fills the rest. */
.lg-shell {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lg-topbar {
    flex: none;
}

.lg-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: #f3f3ee;
    display: grid;
    place-items: center;
    padding: 3.25rem 1rem;
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    color: #111;
}

.lg-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 56rem;
    background: #fff;
    border: 1px solid #f0e3a0;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* ---------- Left: dark preview tile ---------- */
.lg-visual {
    background: #080a0c;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: min(26rem, 60vh);
}

/* .lg-bars: centre area of the dark panel; it holds the company logo */
.lg-bars {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto 0;
}

    .lg-bars img {
        display: block;
        width: clamp(9rem, 14vw, 12rem);
        height: auto;
        border-radius: 14px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
    }

.lg-qty {
    background: #1e9e4a;
    color: #fff;
    border-radius: 8px;
    padding: .8rem 1rem;
    display: flex;
    align-items: baseline;
    gap: .55rem;
}

    .lg-qty b {
        font-family: "DM Mono", "JetBrains Mono", Consolas, monospace;
        font-size: 1.6rem;
        font-weight: 500;
    }

    .lg-qty span {
        font-size: .75rem;
        color: #d7f2e0;
    }

/* ---------- Right: form ---------- */
.lg-form {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2.25rem;
}

    .lg-form h2 {
        margin: 0 0 .25rem;
        font-size: 1.5rem;
        font-weight: 700;
        color: #111;
    }

.lg-hint {
    margin: 0 0 1.25rem;
    font-size: .9rem;
    color: #8a8a82;
}

.lg-form label {
    margin: 1rem 0 .4rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a8a82;
}

.lg-form .lg-input, .lg-form input.lg-input {
    width: 100%;
    box-sizing: border-box;
    padding: .8rem 1rem;
    font: inherit;
    color: #111;
    background: #eef1f6;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color .15s, background .15s;
}

.lg-pw .lg-input {
    padding-right: 3rem;
}

.lg-form .lg-input:focus-visible {
    outline: none;
    background: #fff;
    border-color: #5b9dff;
    box-shadow: 0 0 0 3px rgba(91, 157, 255, .25);
}

.lg-form .lg-input.invalid {
    border-color: #b3261e;
}

.lg-form .validation-message {
    color: #b3261e;
    font-size: .82rem;
    margin-top: .3rem;
}

.lg-remember {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.1rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: .85rem !important;
    font-weight: 400 !important;
    color: #444 !important;
}

.lg-form .lg-alert {
    margin: 0 0 .25rem;
    background: #fdecea;
    border: 1px solid #f3b8b3;
    color: #b3261e;
    padding: .7rem .9rem;
    border-radius: 8px;
    font-size: .88rem;
}

.lg-submit {
    margin-top: 1.5rem;
    padding: .85rem 1rem;
    font: inherit;
    font-weight: 700;
    color: #111;
    background: #ffd400;
    border: 1px solid #e6bf00;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

    .lg-submit:hover {
        background: #ffdf33;
    }

    .lg-submit:active {
        transform: translateY(1px);
    }

    .lg-submit:focus-visible {
        outline: 3px solid rgba(91, 157, 255, .5);
        outline-offset: 2px;
    }

.lg-demo {
    margin: 1.5rem 0 0;
    font-size: .78rem;
    color: #8a8a82;
}

/* ---------- Show / hide password ---------- */
.lg-pw {
    position: relative;
}

.lg-eye {
    position: absolute;
    top: 50%;
    right: .4rem;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #8a8a82;
    cursor: pointer;
}

    .lg-eye:hover {
        color: #111;
        background: rgba(0, 0, 0, .05);
    }

    .lg-eye:focus-visible {
        outline: 3px solid rgba(91, 157, 255, .5);
    }

    .lg-eye .eye-off {
        display: none;
    }

    .lg-eye.on .eye-open {
        display: none;
    }

    .lg-eye.on .eye-off {
        display: block;
    }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .lg-card {
        grid-template-columns: 1fr;
    }

    .lg-visual {
        min-height: 10rem;
        padding: 1.1rem;
    }

    .lg-bars img {
        width: 6.5rem;
    }

    .lg-form {
        padding: 1.75rem 1.5rem;
    }
}
