/* Qordy Staff PIN Login — Minimal, Light by Default */

.q-staff-login,
.q-staff-login * {
 box-sizing: border-box;
}

.q-staff-login {
 min-height: 100vh;
 min-height: 100dvh;
 margin: 0;
 background: #f8fafc;
 color: #0f172a;
 display: flex;
 flex-direction: column;
 font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

.q-staff-login img { max-width: 100%; height: auto; }

/* Layout */
.q-staff-login__main {
 flex: 1;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 1.5rem 1rem;
}

.q-staff-login__card {
 width: 100%;
 max-width: 22rem;
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}

/* Brand */
.q-staff-login__brand {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 0.5rem;
 margin-bottom: 2rem;
}

.q-staff-login__logo {
 width: 4.5rem;
 height: 4.5rem;
 display: grid;
 place-items: center;
 background: #ffffff;
 border: 1px solid #e2e8f0;
 border-radius: 0.875rem;
 padding: 0.5rem;
 overflow: hidden;
 box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.10);
}

.q-staff-login__logo-fallback {
 width: 2.75rem;
 height: 2.75rem;
 display: grid;
 place-items: center;
 background: #eef2ff;
 color: #6366f1;
 border-radius: 0.625rem;
 font-weight: 800;
 font-size: 1.125rem;
 letter-spacing: -0.02em;
}

.q-staff-login__logo img {
 width: 100%;
 height: 100%;
 object-fit: contain;
 display: block;
}

.q-staff-login__title {
 margin: 0;
 font-size: 1.25rem;
 font-weight: 700;
 color: #0f172a;
 letter-spacing: -0.02em;
}

.q-staff-login__subtitle {
 margin: 0;
 font-size: 0.8125rem;
 font-weight: 500;
 color: #64748b;
}

/* Flash */
.q-staff-login__flash {
 width: 100%;
 margin-bottom: 1rem;
}

.q-staff-login__flash-item {
 padding: 0.5rem 0.75rem;
 border-radius: 0.5rem;
 font-size: 0.8125rem;
 font-weight: 600;
 text-align: center;
}

/* PIN dots */
.q-staff-login__pin-dots {
 display: flex;
 justify-content: center;
 gap: 0.625rem;
 margin-bottom: 1.5rem;
}

.q-staff-login__pin-dot {
 width: 0.75rem;
 height: 0.75rem;
 border-radius: 9999px;
 border: 1.5px solid #cbd5e1;
 background: transparent;
 transition: all 0.18s ease;
}

.q-staff-login__pin-dot.is-filled {
 background: #6366f1;
 border-color: #6366f1;
 transform: scale(1.15);
}

/* Keypad */
.q-staff-login__keypad {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 0.5rem;
 width: 100%;
}

.q-staff-login__key {
 min-height: 2.75rem;
 border: 1px solid #e2e8f0;
 border-radius: 0.5rem;
 background: #ffffff;
 color: #0f172a;
 font-size: 1rem;
 font-weight: 600;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: background 0.1s ease, transform 0.08s ease, border-color 0.1s ease;
 user-select: none;
 -webkit-tap-highlight-color: transparent;
}

.q-staff-login__key:hover {
 background: #f1f5f9;
 border-color: #cbd5e1;
}

.q-staff-login__key:active {
 transform: scale(0.96);
 background: #eef2ff;
 border-color: #6366f1;
 color: #4f46e5;
}

.q-staff-login__key--action {
 font-size: 0.6875rem;
 font-weight: 700;
 color: #64748b;
 letter-spacing: 0.02em;
}

.q-staff-login__key--action:hover {
 color: #0f172a;
}

.q-staff-login__key--action svg {
 width: 0.875rem;
 height: 0.875rem;
}

@media (min-width: 640px) {
 .q-staff-login__main { padding: 2rem 1.5rem; }
 .q-staff-login__card { max-width: 24rem; }
 .q-staff-login__logo { width: 3rem; height: 3rem; }
 .q-staff-login__title { font-size: 1.375rem; }
 .q-staff-login__key { min-height: 3rem; font-size: 1.0625rem; }
}
