/* =============================================================================================
   Login page, Nothing style: dot grid, the name in plain bold letters, small mono capitals, pill
   shapes, and phones floating in the air (some out of focus). Always white (the owner chose
   the white version). Step 1 = tap your shop, step 2 = password.
   ============================================================================================= */

.nlogin {
    --ink: #000; --paper: #f2f2f2; --card: #fff; --soft: #555; --line: #000; --grid: rgba(0, 0, 0, .16);
    --red: #c8102e;
    --mono: "Space Mono", Consolas, monospace;
    position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
    background-color: var(--paper); color: var(--ink); font-family: var(--mono);
    background-image: radial-gradient(circle, var(--grid) 1.3px, transparent 1.6px);
    background-size: 18px 18px;
}

.nlogin-inner {
    position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; max-width: 78rem; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; padding: 3rem 2rem;
}
.nlogin-brand { display: grid; gap: 1.6rem; align-content: center; }
.nlogin-inner > * { min-width: 0; }
.nlogin-brand .mono-small { overflow-wrap: anywhere; }
/* The name: plain bold letters (the owner wanted it simple and bold, not dotted). */
.dot-title {
    margin: 0; font-family: "Sora", "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .98;
    letter-spacing: -.035em; color: var(--ink);
}
.mono-small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.dot-head { margin: 0 0 1.2rem; font-family: "Sora", "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; color: var(--ink); }

/* Step 1: shop cards. */
.nlogin-panel { display: grid; justify-items: center; }
.shop-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; width: 100%; max-width: 34rem; margin-bottom: 1.4rem; }
.shop-card {
    display: grid; justify-items: center; gap: .55rem; text-align: center; padding: 1.4rem 1rem; text-decoration: none; color: var(--ink) !important;
    background: var(--card); border: 1px solid var(--line); border-radius: 26px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.shop-card:hover, .shop-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .14); outline: none; }
.shop-card:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.shop-card b { font-family: var(--mono); font-size: 1rem; }
.sym { width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.sym img { width: 72%; height: auto; display: block; }
.sym svg { width: 46%; height: auto; display: block; color: #111; }

/* Step 2: password. */
.login-card { width: 100%; max-width: 26rem; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: 28px; display: grid; gap: 1.1rem; }
.login-card .who { display: flex; align-items: center; gap: 1rem; }
.login-card .who .sym { width: 60px; height: 60px; }
.login-card .who b { display: block; font-size: 1.15rem; }
.login-card form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.pill-box {
    height: 3rem; padding: 0 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: transparent;
    color: var(--ink); font-family: var(--mono); font-size: 1rem; width: 100%;
}
.pill-box:focus { outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, .35); }
.keep { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--soft); cursor: pointer; }
.keep input { accent-color: var(--red); width: 1.05rem; height: 1.05rem; }
.pill-btn {
    height: 3.2rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .8rem;
    font-family: var(--mono); font-weight: 700; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
}
.pill-btn:hover { filter: brightness(1.15); }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.mono-link { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft) !important; text-decoration: none; }
.mono-link:hover { color: var(--ink) !important; }
.login-card .alert { margin: 0; border-radius: 16px; font-family: var(--mono); font-size: .85rem; }

/* Phones and symbols floating in the air, some out of focus, moving slowly. */
.fly { position: absolute; z-index: 1; pointer-events: none; color: var(--ink); will-change: transform; }
.fly svg, .fly img { width: 100%; height: auto; display: block; }
.fly.f1 { width: 150px; left: 38%; top: 6%; filter: blur(4px); opacity: .85; animation: nl-float1 14s ease-in-out infinite alternate; }
.fly.f2 { width: 230px; left: 42%; top: 55%; filter: blur(12px); opacity: .5; animation: nl-float2 18s ease-in-out infinite alternate; }
.fly.f3 { width: 110px; left: 3%; top: 68%; filter: blur(16px); opacity: .45; animation: nl-float3 16s ease-in-out infinite alternate; }
.fly.sym { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.fly.sym img { width: 72%; }
/* The three shop symbols floating: one sharp, two slightly soft. */
.fly.s1 { right: 3%; top: 5%; animation: nl-float2 20s ease-in-out infinite alternate-reverse; }
.fly.s2 { left: 30%; top: 4%; width: 64px; height: 64px; filter: blur(1px); opacity: .95; animation: nl-float3 17s ease-in-out infinite alternate; }
.fly.s3 { right: 22%; top: 11%; width: 72px; height: 72px; filter: blur(2.5px); opacity: .9; animation: nl-float1 15s ease-in-out infinite alternate-reverse; }
/* Bluetooth earbuds case, soft like the big phone, behind the shop cards. */
.fly.buds { width: 210px; right: 8%; bottom: 14%; filter: blur(4px); opacity: .85; animation: nl-float3 19s ease-in-out infinite alternate-reverse; }

/* "Software by Abdullah" at the bottom. */
.nlogin-footer { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1rem; text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
@keyframes nl-float1 { from { transform: translate(0, 0) rotate(-14deg); } to { transform: translate(24px, -30px) rotate(-4deg); } }
@keyframes nl-float2 { from { transform: translate(0, 0) rotate(18deg); } to { transform: translate(-30px, 24px) rotate(8deg); } }
@keyframes nl-float3 { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(20px, -20px) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .fly { animation: none !important; } }

/* Phone: one column, the name smaller, fewer floating things. */
@media (max-width: 860px) {
    .nlogin-inner { grid-template-columns: 1fr; gap: 1.6rem; padding: 2rem 1rem 3rem; align-content: start; }
    .nlogin-brand { gap: 1rem; }
    .dot-title { font-size: clamp(2.6rem, 13vw, 4rem); }
    .fly.f2, .fly.s1, .fly.s2, .fly.s3 { display: none; }
    .fly.buds { width: 130px; right: 4%; bottom: 6%; }
    .fly.f1 { width: 90px; left: auto; right: 6%; top: 3%; }
    /* The shops as a list, one under the other: symbol on the left, name and town on the right. */
    .shop-cards { grid-template-columns: 1fr; gap: .7rem; }
    .shop-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 1rem; row-gap: .1rem; padding: .85rem 1.1rem; border-radius: 22px; }
    .shop-card .sym { grid-row: span 2; width: 56px; height: 56px; }
    .dot-head { font-size: 1.8rem; }
}

