/* ============================================================
   login.css  -  hashimimohallah.in login screen

   Self-contained on purpose. The old page pulled in util1.css (84 KB),
   main1.css, font-awesome.min.css, Bootstrap 5, jQuery and select2 -
   about 124 KB of CSS plus three JS bundles - to render one text input
   and a submit button. profile.php still uses those files, so they are
   left on disk untouched; this page simply stops loading them.

   The palette is deliberately close to admin-ui.css so the member login
   and the admin login read as the same product.
   ============================================================ */

.lg-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background:
        radial-gradient(1000px 480px at 50% -8%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
        #f4f6f8;
    color: #1f2933;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

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

.lg-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07);
    overflow: hidden;
}

.lg-body {
    padding: 26px 26px 28px;
}

/* ---------- banner ----------
   The <img> is produced by index.php from getProfileData(); only the
   presentation is set here. object-fit:contain means a tall or wide
   upload is letterboxed inside a predictable band instead of stretching
   or overflowing the card. */
.lg-banner {
    background: #fbfcfe;
    border-bottom: 1px solid #eef1f5;
    padding: 18px 18px 0;
    text-align: center;
}

.lg-banner img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.lg-banner + .lg-body {
    padding-top: 22px;
}

/* ---------- head ---------- */
.lg-mark {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2f6feb;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.5px;
    box-shadow: 0 4px 12px rgba(47, 111, 235, .28);
}

.lg-head {
    text-align: center;
    margin-bottom: 22px;
}

.lg-head h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.2px;
    color: #1f2933;
}

.lg-head p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #6b7785;
}

/* ---------- message ----------
   Mirrors the admin flash treatment so errors look the same in both
   places. The PHP only ever assigns fixed strings, but the output is
   escaped at the call site regardless. */
.lg-msg {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #f0dcb4;
    border-radius: 6px;
    background: #fdf3e2;
    color: #b26a00;
    font-size: 13.5px;
    line-height: 1.45;
}

.lg-msg:empty {
    display: none;
}

.lg-msg--info {
    border-color: #bcdcf0;
    background: #e8f2f9;
    color: #1d6fa5;
}

/* ---------- form ---------- */
.lg-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6b7785;
}

.lg-in {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    font-size: 16px; /* 16px stops iOS Safari zooming on focus */
    color: #1f2933;
    background: #fff;
    border: 1px solid #cbd3dd;
    border-radius: 6px;
    transition: border-color .12s, box-shadow .12s;
}

.lg-in:focus {
    outline: 0;
    border-color: #2f6feb;
    box-shadow: 0 0 0 3px rgba(47, 111, 235, .14);
}

.lg-in::placeholder {
    color: #9aa5b1;
}

/* Hide the spin buttons: this field is an ITS ID, and the arrows imply
   it is a quantity to be nudged up and down. */
.lg-in[type=number]::-webkit-outer-spin-button,
.lg-in[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lg-in[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.lg-btn {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #2f6feb;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .12s, box-shadow .12s;
}

.lg-btn:hover {
    filter: brightness(1.07);
}

.lg-btn:active {
    filter: brightness(.95);
}

.lg-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(47, 111, 235, .28);
}

.lg-hint {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    color: #6b7785;
}

/* ---------- foot ---------- */
.lg-foot {
    margin-top: 18px;
    font-size: 12px;
    color: #6b7785;
    text-align: center;
}

/* ---------- small screens ---------- */
@media (max-width: 440px) {
    .lg-body {
        padding: 22px 20px 24px;
    }

    .lg-mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 19px;
    }

    .lg-banner img {
        max-height: 170px;
    }
}
