/* ── QuickPOS — Login Page ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

.qpos-login-body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.qpos-login-bgshape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.qpos-bg-1 { width: 380px; height: 380px; background: #2563eb; opacity: .25; top: -110px; right: -110px; }
.qpos-bg-2 { width: 320px; height: 320px; background: #16a34a; opacity: .18; bottom: -90px; left: -90px; }

.qpos-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
    overflow: hidden;
}

.qpos-login-head {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 38px 32px 30px;
    text-align: center;
    color: #fff;
}
.qpos-login-mark {
    width: 54px; height: 54px; margin: 0 auto 14px;
    background: rgba(255,255,255,.12);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.qpos-login-logo-img {
    max-width: 64px; max-height: 64px; margin: 0 auto 14px; display: block;
    border-radius: 12px;
}
.qpos-login-head h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    margin: 0 0 4px;
}
.qpos-login-head p {
    font-size: .85rem;
    opacity: .75;
    margin: 0;
}

.qpos-login-form {
    padding: 30px 32px 24px;
}

.qpos-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .84rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.qpos-field { margin-bottom: 18px; }
.qpos-field label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: 7px;
}
.qpos-field input[type="text"],
.qpos-field input[type="password"] {
    width: 100%;
    font-family: inherit;
    font-size: .95rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.qpos-field input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.qpos-pw-wrap { position: relative; display: flex; align-items: center; }
.qpos-pw-wrap input { padding-right: 42px; }
.qpos-pw-toggle {
    position: absolute; right: 10px;
    background: none; border: none; cursor: pointer;
    font-size: .95rem; opacity: .55; padding: 6px;
}
.qpos-pw-toggle:hover { opacity: .9; }

.qpos-remember {
    display: flex; align-items: center; gap: 8px;
    font-size: .85rem; color: #64748b; font-weight: 500;
    margin-bottom: 22px; cursor: pointer;
}
.qpos-remember input { width: 17px; height: 17px; accent-color: #2563eb; }

.qpos-btn-signin {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 24px -8px rgba(37,99,235,.5);
    cursor: pointer;
    transition: filter .15s, transform .08s;
}
.qpos-btn-signin:hover { filter: brightness(1.06); }
.qpos-btn-signin:active { transform: scale(.985); }

.qpos-login-foot {
    text-align: center;
    padding: 16px 0 24px;
    font-size: .72rem;
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: #f8fafc;
}

@media (max-width: 420px) {
    .qpos-login-head { padding: 30px 24px 24px; }
    .qpos-login-form { padding: 24px 24px 20px; }
}
